From cdf44030d7bbf81d01df7d4874dd40892eb12e4a Mon Sep 17 00:00:00 2001 From: sirlemonhead Date: Thu, 28 Nov 2019 21:46:40 +0000 Subject: [PATCH] Silence nPlayerSprite check in DoKenTest() as this can fail in valid situations, such as in RestartPlayer() while the player is still being set up. --- source/exhumed/src/player.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/exhumed/src/player.cpp b/source/exhumed/src/player.cpp index e4c625403..d29768ba3 100644 --- a/source/exhumed/src/player.cpp +++ b/source/exhumed/src/player.cpp @@ -1031,10 +1031,9 @@ void PlayAlert(const char *str) void DoKenTest() { - int nPlayerSprite = PlayerList[0].nSprite; // CHECKME + int nPlayerSprite = PlayerList[0].nSprite; if ((unsigned int)nPlayerSprite >= kMaxSprites) { - initprintf("DoKenTest: (unsigned int)nPlayerSprite >= kMaxSprites)\n"); return; } int nSector = sprite[nPlayerSprite].sectnum;