mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
catch playeringame[] overflow (#497)
This commit is contained in:
parent
ee2d4a4be0
commit
c70f5a5309
@ -1031,7 +1031,7 @@ void P_SpawnPlayer (mapthing_t* mthing)
|
||||
|
||||
// not playing?
|
||||
|
||||
if (!playeringame[mthing->type-1])
|
||||
if (mthing->type == 0 || !playeringame[mthing->type-1]) // [FG] catch overflow
|
||||
return;
|
||||
|
||||
p = &players[mthing->type-1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user