summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFabian Greffrath2014-08-05 17:46:06 +0200
committerFabian Greffrath2014-08-05 17:46:06 +0200
commite03f775902d666e65f1d06332871a80b0e3cc10f (patch)
tree4c75413078e75d04eaebe962ee970163a2372a23 /src
parent0632e537f9277e7c3c0cbc2874be94531ff50134 (diff)
downloadchocolate-doom-e03f775902d666e65f1d06332871a80b0e3cc10f.tar.gz
chocolate-doom-e03f775902d666e65f1d06332871a80b0e3cc10f.tar.bz2
chocolate-doom-e03f775902d666e65f1d06332871a80b0e3cc10f.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/deh_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/deh_main.c b/src/deh_main.c
index ff0236b1..c98962a9 100644
--- a/src/deh_main.c
+++ b/src/deh_main.c
@@ -346,6 +346,12 @@ int DEH_LoadLump(int lumpnum, boolean allow_long)
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;