From 766fb93191420841168612abd3539adb2acc0c04 Mon Sep 17 00:00:00 2001 From: terminx Date: Fri, 22 Feb 2019 20:26:38 +0000 Subject: [PATCH] Fix a crash when accessing SECTOR_WALLPTR with CON_SETSECTOR git-svn-id: https://svn.eduke32.com/eduke32@7351 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gameexec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/gameexec.cpp b/source/duke3d/src/gameexec.cpp index 622dfff93..4cb3c593a 100644 --- a/source/duke3d/src/gameexec.cpp +++ b/source/duke3d/src/gameexec.cpp @@ -2526,7 +2526,7 @@ next_instruction: if (sectLabel.offset == -1 || sectLabel.flags & LABEL_WRITEFUNC) { - VM_SetSector(sectNum, labelNum, Gv_GetVarX(*insptr++)); + VM_SetSector(sectNum, labelNum, newValue); continue; }