mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 11:40:44 +00:00
- SW: clear old user content before allocating a new one.
If old data gets in here it may break the game. https://github.com/coelckers/Raze/issues/349
This commit is contained in:
parent
a7adef360b
commit
0659bda6b6
1 changed files with 1 additions and 0 deletions
|
@ -870,6 +870,7 @@ SpawnUser(short SpriteNum, short id, STATEp state)
|
|||
|
||||
ASSERT(!Prediction);
|
||||
|
||||
User[SpriteNum].Clear(); // make sure to delete old, stale content first!
|
||||
User[SpriteNum].Alloc();
|
||||
u = User[SpriteNum].Data();
|
||||
|
||||
|
|
Loading…
Reference in a new issue