fix oob write when map has playerstarts for 32 players

This commit is contained in:
NepDisk 2025-05-13 16:06:21 -04:00
parent cd24b68517
commit f05c8ee548

View file

@ -12310,6 +12310,11 @@ static boolean P_SpawnNonMobjMapThing(mapthing_t *mthing)
{
return true; // These are handled elsewhere.
}
else if (mthing->type > MAXPLAYERS && mthing->type <= 32) // be wary of playerstarts size! playerstarts[MAXPLAYERS]
{
CONS_Alert(CONS_WARNING, "Excess player start detected %d\n", mthing->type);
return true;
}
return false;
}