diff options
Diffstat (limited to 'engines/sword25/script/luascript.cpp')
-rw-r--r-- | engines/sword25/script/luascript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/script/luascript.cpp b/engines/sword25/script/luascript.cpp index 3aca6676ac..1a83fc9c82 100644 --- a/engines/sword25/script/luascript.cpp +++ b/engines/sword25/script/luascript.cpp @@ -395,7 +395,7 @@ bool LuaScriptEngine::persist(OutputPersistenceBlock &writer) { lua_getglobal(_state, "_G"); // Lua persists and stores the data in a WriteStream - Common::MemoryWriteStreamDynamic writeStream; + Common::MemoryWriteStreamDynamic writeStream(DisposeAfterUse::YES); Lua::persistLua(_state, &writeStream); // Persistenzdaten in den Writer schreiben. |