mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-06-30 13:29:36 +00:00
Fixed bug: pModUtil3d was hanging around after memory reset.
This commit is contained in:
parent
5c8bbada56
commit
18031e182d
|
@ -2038,6 +2038,16 @@ def initMap(x, y, dir)#0
|
||||||
|
|
||||||
// Reset memory (our module will stay since memory manager locked it upon load)
|
// Reset memory (our module will stay since memory manager locked it upon load)
|
||||||
mmgr(RESET_MEMORY, 0)
|
mmgr(RESET_MEMORY, 0)
|
||||||
|
|
||||||
|
// Reset all pointers to non-locked memory, since the stuff might go away
|
||||||
|
pModUtil3d = NULL
|
||||||
|
util3d = NULL
|
||||||
|
pCurMap = NULL
|
||||||
|
curEngine = NULL
|
||||||
|
pGlobalTileset = NULL
|
||||||
|
curPortrait = NULL
|
||||||
|
curPortraitNum = 0
|
||||||
|
curFullscreenImg = NULL
|
||||||
renderLoaded = FALSE // leave it this way until all scripts done, else scriptDisplayStr renders
|
renderLoaded = FALSE // leave it this way until all scripts done, else scriptDisplayStr renders
|
||||||
|
|
||||||
// Load the frame image, then raycaster or tile engine
|
// Load the frame image, then raycaster or tile engine
|
||||||
|
|
Loading…
Reference in New Issue
Block a user