From 0659bda6b6116692ecf8a5f9007997c3d682f40a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 4 May 2021 11:11:38 +0200 Subject: [PATCH] - 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 --- source/games/sw/src/sprite.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/games/sw/src/sprite.cpp b/source/games/sw/src/sprite.cpp index fb93034c1..6646bae45 100644 --- a/source/games/sw/src/sprite.cpp +++ b/source/games/sw/src/sprite.cpp @@ -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();