Fix dynamic indexes desynchronizing on resolution change (fixes Slumberland boombox switch not working if you change resolution on the screen with the switch)

This commit is contained in:
elasota
2020-04-18 00:42:45 -04:00
parent c3f3fb4621
commit d893b356f1
2 changed files with 9 additions and 8 deletions

View File

@@ -50,6 +50,10 @@ void ResetLocale (Boolean soft)
{
RemoveSavedMapsNotInRoom(localNumbers[kCentralRoom]);
ZeroDinahsNotInRoom(localNumbers[kCentralRoom]);
// Clear all dinah indexes, they'll be remapped
for (int i = 0; i < numMasterObjects; i++)
masterObjects[i].dynaNum = -1;
}
else
{