- Blood: instead of running the indexer after saving a state, just save the pointer before indexing to directly restore it.

This commit is contained in:
Christoph Oelckers 2020-09-20 22:00:39 +02:00
parent 1139702815
commit 3810c4cb51

View file

@ -709,9 +709,10 @@ void MyLoadSave::Save(void)
int nXSprite = sprite[nSprite].extra;
if (nXSprite > 0)
{
auto saved = xsprite[nXSprite].aiState;
IndexAIState(xsprite[nXSprite].aiState);
Write(&xsprite[nXSprite], sizeof(XSPRITE));
UnindexAIState(xsprite[nXSprite].aiState);
xsprite[nXSprite].aiState = saved;
}
}
}