- fixed: static event handlers must also receive WorldLoaded events on loading a savegame.

This commit is contained in:
Christoph Oelckers 2019-03-02 13:50:58 +01:00
parent 9ab57e242b
commit d893299185

View file

@ -278,7 +278,7 @@ void EventManager::WorldLoaded()
{
for (DStaticEventHandler* handler = FirstEventHandler; handler; handler = handler->next)
{
if (savegamerestore) continue; // don't execute WorldLoaded for handlers loaded from the savegame.
if (!handler->IsStatic() && savegamerestore) continue; // don't execute WorldLoaded for handlers loaded from the savegame.
handler->WorldLoaded();
}
}