X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=080c1761d73095360dd92d84a65b0a66c5f2be0e;hb=fb8bb677ad12b6b837192cb32a395b9e9c2bcdb6;hp=6c992e9883206ec9d66772c242482c6171788bcf;hpb=b17f4d72000dc48e9af6faed8e8b0dc2faf8bccf;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index 6c992e98..080c1761 100644 --- a/src/editor.c +++ b/src/editor.c @@ -14219,7 +14219,8 @@ static void HandleControlButtons(struct GadgetInfo *gi) id <= GADGET_ID_ELEMENTLIST_LAST) { int element_position = id - GADGET_ID_ELEMENTLIST_FIRST; - int new_element = editor_elements[element_position + element_shift]; + + new_element = editor_elements[element_position + element_shift]; if (IS_EDITOR_CASCADE(new_element)) {