commit fdf156f819df06f7d7af700ba5bf834516b92a6f
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Wed Jul 11 21:20:39 2012 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Wed Jul 11 21:20:39 2012 +0000
Add bound check for scrolling walls limit and exit with an error if it
is exceeded.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2513
---
src/p_spec.c | 5 +++++
1 file changed, 5 insertions(+)
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++;