Skip to content

Commit

Permalink
fix: properties window not opening
Browse files Browse the repository at this point in the history
  • Loading branch information
phacUFPE committed Nov 25, 2024
1 parent 5cc1b1e commit 4e1396d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/map_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Monster*> selectedMonsters = newTile->getSelectedMonsters();

const auto it = std::ranges::find_if(selectedMonsters | std::views::reverse, [&](const auto itMonster) {
Expand Down

0 comments on commit 4e1396d

Please sign in to comment.