Silence nPlayerSprite check in DoKenTest() as this can fail in valid situations, such as in RestartPlayer() while the player is still being set up.

This commit is contained in:
sirlemonhead 2019-11-28 21:46:40 +00:00 committed by Christoph Oelckers
parent de5aa31674
commit cdf44030d7

View file

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