From 6f3727bed29aedd35b68e50729c25a440dd14acc Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 14 Jan 2020 19:38:49 +0100 Subject: [PATCH] fixed bug in editor with GEs using graphic of other element This bug appeared when using "use graphic of element" and then changing some other GE settings (like counters etc.), which caused the custom graphics to be reset to the GEs default graphics. This is the same bug as the one fixed in commit 77c74cbf, but for group elements instead of custom elements. --- src/editor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/editor.c b/src/editor.c index b99d33b7..5d38017e 100644 --- a/src/editor.c +++ b/src/editor.c @@ -8341,6 +8341,9 @@ static void CopyGroupElementPropertiesToGame(int element) element_info[element] = custom_element; *element_info[element].group = group_element_info; + + // needed here to restore runtime value "element_info[element].gfx_element" + InitElementPropertiesGfxElement(); } static void CopyClassicElementPropertiesToGame(int element) -- 2.34.1