diff options
author | Simon Howard | 2012-07-11 21:20:39 +0000 |
---|---|---|
committer | Simon Howard | 2012-07-11 21:20:39 +0000 |
commit | fdf156f819df06f7d7af700ba5bf834516b92a6f (patch) | |
tree | 17458c977960a711baeb412bf7e555cb02e4b9dd | |
parent | ddb9af112d766cbc56fb7292f23f45a5f9c13edc (diff) | |
download | chocolate-doom-fdf156f819df06f7d7af700ba5bf834516b92a6f.tar.gz chocolate-doom-fdf156f819df06f7d7af700ba5bf834516b92a6f.tar.bz2 chocolate-doom-fdf156f819df06f7d7af700ba5bf834516b92a6f.zip |
Add bound check for scrolling walls limit and exit with an error if it
is exceeded.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2513
-rw-r--r-- | src/p_spec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/p_spec.c b/src/p_spec.c index 90d0bb7c..5f4853a1 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -1474,6 +1474,11 @@ void P_SpawnSpecials (void) switch(lines[i].special) { case 48: + if (numlinespecials >= MAXLINEANIMS) + { + I_Error("Too many scrolling wall linedefs! " + "(Vanilla limit is 32)"); + } // EFFECT FIRSTCOL SCROLL+ linespeciallist[numlinespecials] = &lines[i]; numlinespecials++; |