mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 20:20:54 +00:00
- 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:
parent
1139702815
commit
3810c4cb51
1 changed files with 2 additions and 1 deletions
|
@ -709,9 +709,10 @@ void MyLoadSave::Save(void)
|
||||||
int nXSprite = sprite[nSprite].extra;
|
int nXSprite = sprite[nSprite].extra;
|
||||||
if (nXSprite > 0)
|
if (nXSprite > 0)
|
||||||
{
|
{
|
||||||
|
auto saved = xsprite[nXSprite].aiState;
|
||||||
IndexAIState(xsprite[nXSprite].aiState);
|
IndexAIState(xsprite[nXSprite].aiState);
|
||||||
Write(&xsprite[nXSprite], sizeof(XSPRITE));
|
Write(&xsprite[nXSprite], sizeof(XSPRITE));
|
||||||
UnindexAIState(xsprite[nXSprite].aiState);
|
xsprite[nXSprite].aiState = saved;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue