- 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:
Christoph Oelckers 2021-05-04 11:11:38 +02:00
parent a7adef360b
commit 0659bda6b6

View file

@ -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();