- pass level num to string locking functions as a parameter.

This commit is contained in:
Christoph Oelckers 2019-01-06 09:37:11 +01:00
commit 8ead5a3a6b
3 changed files with 29 additions and 84 deletions

View file

@ -854,7 +854,7 @@ void G_DoCompleted (void)
G_SnapshotLevel ();
// Do not free any global strings this level might reference
// while it's not loaded.
level.Behaviors.LockLevelVarStrings();
level.Behaviors.LockLevelVarStrings(level.levelnum);
}
else
{ // Make sure we don't have a snapshot lying around from before.
@ -1718,7 +1718,7 @@ void G_UnSnapshotLevel (bool hubLoad)
if (hubLoad)
{
// Unlock ACS global strings that were locked when the snapshot was made.
level.Behaviors.UnlockLevelVarStrings();
level.Behaviors.UnlockLevelVarStrings(level.levelnum);
}
}