From e03f775902d666e65f1d06332871a80b0e3cc10f Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Tue, 5 Aug 2014 17:46:06 +0200 Subject: 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 --- src/deh_main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/deh_main.c') 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; -- cgit v1.2.3