From: Holger Schemel Date: Tue, 14 Jan 2020 18:38:49 +0000 (+0100) Subject: fixed bug in editor with GEs using graphic of other element X-Git-Tag: 4.1.4.1~1 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=6f3727bed29aedd35b68e50729c25a440dd14acc 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. --- 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)