aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2007-12-26 23:06:22 +0000
committerWillem Jan Palenstijn2007-12-26 23:06:22 +0000
commit9ada2910f7cab90187c1b01470e2b8d5fab060dc (patch)
tree1c90966813fc98d65a99da051ea960d40c43a9f7 /engines/scumm
parent9b0dc6f757ff6601d1d4b884e517221cb099a82b (diff)
downloadscummvm-rg350-9ada2910f7cab90187c1b01470e2b8d5fab060dc.tar.gz
scummvm-rg350-9ada2910f7cab90187c1b01470e2b8d5fab060dc.tar.bz2
scummvm-rg350-9ada2910f7cab90187c1b01470e2b8d5fab060dc.zip
don't clear owner of invalid global object 0 (fixes #1857697)
svn-id: r30007
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/scumm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index 24c23bc86b..78bd9321e6 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -2193,7 +2193,7 @@ void ScummEngine::restart() {
_scummVars[i] = 0;
// Empty inventory
- for (i = 0; i < _numGlobalObjects; i++)
+ for (i = 1; i < _numGlobalObjects; i++)
clearOwnerOf(i);
// Reallocate arrays