aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/util/lua_unpersist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/util/lua_unpersist.cpp')
-rw-r--r--engines/sword25/util/lua_unpersist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/util/lua_unpersist.cpp b/engines/sword25/util/lua_unpersist.cpp
index ef0ef31041..678ddb52db 100644
--- a/engines/sword25/util/lua_unpersist.cpp
+++ b/engines/sword25/util/lua_unpersist.cpp
@@ -425,7 +425,7 @@ void unpersistThread(UnSerializationInfo *info, int index) {
// First, deserialize the object stack
uint32 stackSize = info->readStream->readUint32LE();
- lua_growstack(info->luaState, (int)stackSize);
+ lua_checkstack(info->luaState, (int)stackSize);
// Make sure that the first stack element (a nil, representing
// the imaginary top-level C function) is written to the very,