X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=0c065762676cf00ea4414de701941997cda8b449;hb=cf6db6f4ddaf8a02ee1336e9b04200e436d9f60f;hp=cef0b2875b2430259ceef346eea90e00777abd1a;hpb=05818ea4267c3e2a196071d17d8735d6f6fe65c9;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index cef0b287..0c065762 100644 --- a/src/editor.c +++ b/src/editor.c @@ -5688,6 +5688,10 @@ static void ReinitializeElementList() num_editor_elements += num_editor_el_empty; } + else + { + num_editor_el_empty = 0; + } editor_elements = checked_malloc(num_editor_elements * sizeof(int));