aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/mpal
diff options
context:
space:
mode:
authorPaul Gilbert2012-06-09 17:51:58 +1000
committerPaul Gilbert2012-06-09 17:51:58 +1000
commit10621fded8eee2da03a2a9f93bfa1546bcb7c748 (patch)
treec04ab0e3fecff7fb0577096c0805d0607ae33ad7 /engines/tony/mpal
parent26bb3d67329112e0bd49013628cdf4d8f4473766 (diff)
downloadscummvm-rg350-10621fded8eee2da03a2a9f93bfa1546bcb7c748.tar.gz
scummvm-rg350-10621fded8eee2da03a2a9f93bfa1546bcb7c748.tar.bz2
scummvm-rg350-10621fded8eee2da03a2a9f93bfa1546bcb7c748.zip
TONY: Fix some calls from globalFree to globalDestroy
Diffstat (limited to 'engines/tony/mpal')
-rw-r--r--engines/tony/mpal/mpal.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tony/mpal/mpal.cpp b/engines/tony/mpal/mpal.cpp
index 4aac53bb8e..9f9a4c203b 100644
--- a/engines/tony/mpal/mpal.cpp
+++ b/engines/tony/mpal/mpal.cpp
@@ -911,7 +911,7 @@ void LocationPollThread(CORO_PARAM, const void *param) {
unlockItems();
/* We don't need the item list anymore */
- globalFree(_ctx->il);
+ globalDestroy(_ctx->il);
/* Here's the main loop */
@@ -2108,7 +2108,7 @@ int mpalLoadState(byte *buf) {
GLOBALS.nVars = READ_LE_UINT32(buf);
- GLOBALS.hVars = globalAlloc(GMEM_ZEROINIT | GMEM_MOVEABLE, GLOBALS.nVars * sizeof(MPALVAR));
+ GLOBALS.hVars = globalAllocate(GMEM_ZEROINIT | GMEM_MOVEABLE, GLOBALS.nVars * sizeof(MPALVAR));
lockVar();
copyMemory((byte *)GLOBALS.lpmvVars, buf + 4, GLOBALS.nVars * sizeof(MPALVAR));
unlockVar();