From 4e9530d1cc582e710761b638de9dcb39935484f2 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 21 Oct 2017 16:36:44 +0200 Subject: [PATCH] fixed bug that could cause crash when artwork changes editor palette size --- src/editor.c | 4 ++++ 1 file changed, 4 insertions(+) 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)); -- 2.34.1