From d3dd98f09b15c0b3110acfc3c6abc36cc1007b05 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 10 Apr 2024 13:12:21 +0200 Subject: [PATCH] fixed using invalid edit mode in level editor --- src/editor.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/editor.c b/src/editor.c index 95d30a88..75663919 100644 --- a/src/editor.c +++ b/src/editor.c @@ -11573,6 +11573,11 @@ static void DrawLevelConfigWindow(void) stick_element_properties_window = FALSE; + // make sure that previous level config edit mode exists for this level + if (edit_mode_levelconfig == ED_MODE_LEVELCONFIG_ENGINE && + level.game_engine_type != GAME_ENGINE_TYPE_BD) + edit_mode_levelconfig = ED_MODE_LEVELCONFIG_LEVEL; + SetAutomaticNumberOfGemsNeeded(); UnmapLevelEditorFieldGadgets(); -- 2.34.1