ref: 7994c9e7e6d8a6f68c8841c65db3f981d1c3ccf2
parent: 4f9561ecd383028d75f8027e9cb831a5b553b002
author: Simon Howard <fraggle@gmail.com>
date: Sat Sep 15 09:13:00 EDT 2007
Check for playeringame overflow when spawning a new player (for compatibility with vex6d.wad / bug_wald.lmp) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 973
--- a/src/p_mobj.c
+++ b/src/p_mobj.c
@@ -683,6 +683,11 @@
int i;
+ if (mthing->type == 0)
+ {
+ return;
+ }
+
// not playing?
if (!playeringame[mthing->type-1])
return;