fixed bug in editor with GEs using graphic of other element
[rocksndiamonds.git] / src / editor.c
index b99d33b774407537563726f03fe56b876f2d2247..5d38017e711084f4951f5270aaaa43ec995e6d6b 100644 (file)
@@ -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)