shithub: choc

Download patch

ref: 51b9d1fccd8c885d8349b307b3553bdf5a638027
parent: 5d6ac0a7bae9986b71f889119453c129ab983842
parent: 8b1522fc1438ccaa19ee90b875f0488f05e09e8c
author: Simon Howard <fraggle+github@gmail.com>
date: Sat Sep 12 13:17:15 EDT 2015

Merge pull request #611 from linguica/master

doom: Add error message to 1-sided DR special crash

--- a/src/doom/p_doors.c
+++ b/src/doom/p_doors.c
@@ -392,6 +392,12 @@
     }
 	
     // if the sector has an active thinker, use it
+
+    if (line->sidenum[side^1] == -1)
+    {
+        I_Error("EV_VerticalDoor: DR special type on 1-sided linedef");
+    }
+
     sec = sides[ line->sidenum[side^1]] .sector;
 
     if (sec->specialdata)