From cf6b5d2b319d566c5daaeda1094d03564aaee1fc Mon Sep 17 00:00:00 2001 From: Martin Haye Date: Sun, 15 Mar 2020 12:33:21 -0700 Subject: [PATCH] Fix hard-to-find return-to-different-world bug. --- Platform/Apple/virtual/src/plasma/gameloop.pla | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/Apple/virtual/src/plasma/gameloop.pla b/Platform/Apple/virtual/src/plasma/gameloop.pla index 023f16a7..b7076efe 100644 --- a/Platform/Apple/virtual/src/plasma/gameloop.pla +++ b/Platform/Apple/virtual/src/plasma/gameloop.pla @@ -2140,7 +2140,7 @@ export def textureControl(flg)#0 showingLamp = (skyNum == 0 or skyNum == 8) else _texControl(0) - if pModUtil3d + if pModUtil3d and !inScript // e.g. strafe -> script -> combat: need strafe to stay in mem! mmgr(FREE_MEMORY, pModUtil3d) pModUtil3d = NULL util3d = NULL