From 4e1396d30129f09d729a94e21e33395f717f0166 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Alves Cruz Date: Mon, 25 Nov 2024 03:28:49 -0300 Subject: [PATCH] fix: properties window not opening --- source/map_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/map_display.cpp b/source/map_display.cpp index a1002bc5..2f290de7 100644 --- a/source/map_display.cpp +++ b/source/map_display.cpp @@ -2372,7 +2372,7 @@ void MapCanvas::OnProperties(wxCommandEvent &WXUNUSED(event)) { if (newTile->spawnMonster && g_settings.getInteger(Config::SHOW_SPAWNS_MONSTER)) { w = newd OldPropertiesWindow(g_gui.root, &editor.getMap(), newTile, newTile->spawnMonster); - } else if (g_settings.getInteger(Config::SHOW_MONSTERS)) { + } else if (!newTile->monsters.empty() && g_settings.getInteger(Config::SHOW_MONSTERS)) { std::vector selectedMonsters = newTile->getSelectedMonsters(); const auto it = std::ranges::find_if(selectedMonsters | std::views::reverse, [&](const auto itMonster) {