aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/scumm.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index fca23f4e28..ade41b8675 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -1978,6 +1978,9 @@ void ScummEngine::restart() {
clearOwnerOf(i);
// Reallocate arrays
+ // FIXME: This should already be called by readIndexFile.
+ // FIXME: regardless of that, allocateArrays and allocResTypeData leaks
+ // heavily, which should be fixed.
allocateArrays();
// Reread index (reset objectstate etc)