aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/lol.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp
index 833da7764d..d185651ca1 100644
--- a/engines/kyra/lol.cpp
+++ b/engines/kyra/lol.cpp
@@ -612,6 +612,8 @@ void LoLEngine::preInit() {
char filename[32];
snprintf(filename, sizeof(filename), "LANDS.%s", _languageExt[_lang]);
_res->exists(filename, true);
+ if (_landsFile)
+ delete[] _landsFile;
_landsFile = _res->fileData(filename, 0);
loadItemIconShapes();
}