diff --git a/src/r_things.c b/src/r_things.c index 9763648cd..3bafafaa8 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -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;