shithub: choc

Download patch

ref: e03f775902d666e65f1d06332871a80b0e3cc10f
parent: 0632e537f9277e7c3c0cbc2874be94531ff50134
author: Fabian Greffrath <fabian@greffrath.com>
date: Tue Aug 5 13:46:06 EDT 2014

call InitializeSections() in DEH_LoadLump()

apparently, this has been forgotten before, so DEH_PointerInit()
was not executed which meant that *some* DEHACKED patches
would not work when loaded from within a PWAD but would work
when extracted from that WAD and loaded via -deh.

fixes #421

--- a/src/deh_main.c
+++ b/src/deh_main.c
@@ -346,6 +346,12 @@
     deh_context_t *context;
     boolean long_strings, long_cheats;
 
+    if (!deh_initialized)
+    {
+        InitializeSections();
+        deh_initialized = true;
+    }
+
     if (allow_long)
     {
         long_strings = deh_allow_long_strings;