From 77c74cbf7569a65f71e004fab915a8b6ee73cbed Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 27 Dec 2019 16:55:32 +0100 Subject: [PATCH] fixed bug in editor with CEs using graphic of other element This bug appeared when using "use graphic of element" and then changing some other CE settings (like counters etc.), which caused the custom graphics to be reset to the CEs default graphics. --- src/editor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/editor.c b/src/editor.c index c8444b11..b99d33b7 100644 --- a/src/editor.c +++ b/src/editor.c @@ -8325,6 +8325,9 @@ static void CopyCustomElementPropertiesToGame(int element) // copy change events also to special level editor variable custom_element = element_info[element]; custom_element_change = *element_info[element].change; + + // needed here to restore runtime value "element_info[element].gfx_element" + InitElementPropertiesGfxElement(); } static void CopyGroupElementPropertiesToGame(int element) -- 2.34.1