We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 636d560 commit 76a2baeCopy full SHA for 76a2bae
src/worldmap/sprite_change.cpp
@@ -67,9 +67,10 @@ SpriteChange::clear_stay_action(bool propagate)
67
m_in_stay_action = false;
68
69
// if we are in a stay_group, also clear all stay actions in this group
70
- if (!m_stay_group.empty() && propagate)
+ auto sector = WorldMapSector::current();
71
+ if (!m_stay_group.empty() && propagate && sector != nullptr)
72
{
- for (SpriteChange& sc : WorldMapSector::current()->get_objects_by_type<SpriteChange>())
73
+ for (SpriteChange& sc : sector->get_objects_by_type<SpriteChange>())
74
75
if (sc.m_stay_group != m_stay_group) continue;
76
sc.m_in_stay_action = false;
0 commit comments