Merge branch 'minusoneframes' into 'master'

Minus One Frames

See merge request STJr/SRB2Internal!593
This commit is contained in:
MascaraSnake 2019-12-04 17:15:51 -05:00
commit e6f1b82cc4
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ void R_AddSpriteDefs(UINT16 wadnum)
else
start++; // just after S_START
if (end == INT16_MAX)
if (end == INT16_MAX || start >= end)
{
CONS_Debug(DBG_SETUP, "no sprites in pwad %d\n", wadnum);
return;