From: Holger Schemel Date: Thu, 23 Aug 2018 19:53:59 +0000 (+0200) Subject: added missing check for changed level in editor ("use template for CEs") X-Git-Tag: 4.1.1.0~60 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c3f59af0d79398728bb8db735cafe1e37d7e3e73;p=rocksndiamonds.git added missing check for changed level in editor ("use template for CEs") --- diff --git a/src/editor.c b/src/editor.c index 9fa2a909..ca6fe0b2 100644 --- a/src/editor.c +++ b/src/editor.c @@ -13147,7 +13147,8 @@ static void HandleCheckbuttons(struct GadgetInfo *gi) if ((type_id >= ED_CHECKBUTTON_ID_LEVELSET_FIRST && type_id <= ED_CHECKBUTTON_ID_LEVELSET_LAST) || (type_id >= ED_CHECKBUTTON_ID_EDITOR_FIRST && - type_id <= ED_CHECKBUTTON_ID_EDITOR_LAST) || + type_id <= ED_CHECKBUTTON_ID_EDITOR_LAST && + type_id != ED_CHECKBUTTON_ID_CUSTOM_USE_TEMPLATE_2) || type_id == ED_CHECKBUTTON_ID_STICK_ELEMENT) return;