From 18a289d762350332bb8e71805701345c439b479c Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 22 May 2018 19:03:24 +0000 Subject: [PATCH] CON: make setting a sector's .wallptr call setfirstwall() instead of setting it directly and corrupting the map git-svn-id: https://svn.eduke32.com/eduke32@6894 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gamestructures.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/gamestructures.cpp b/source/duke3d/src/gamestructures.cpp index 69aeadb63..b5642f989 100644 --- a/source/duke3d/src/gamestructures.cpp +++ b/source/duke3d/src/gamestructures.cpp @@ -1117,7 +1117,7 @@ void __fastcall VM_SetSector(int32_t const sectNum, int32_t const labelNum, int3 switch (labelNum) { - case SECTOR_WALLPTR: pSector->wallptr = iSet; break; + case SECTOR_WALLPTR: setfirstwall(sectNum, iSet); break; case SECTOR_WALLNUM: pSector->wallnum = iSet; break; case SECTOR_CEILINGZ: pSector->ceilingz = iSet; break;