diff options
author | Willem Jan Palenstijn | 2007-12-26 23:06:22 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2007-12-26 23:06:22 +0000 |
commit | 9ada2910f7cab90187c1b01470e2b8d5fab060dc (patch) | |
tree | 1c90966813fc98d65a99da051ea960d40c43a9f7 /engines/scumm | |
parent | 9b0dc6f757ff6601d1d4b884e517221cb099a82b (diff) | |
download | scummvm-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.cpp | 2 |
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 |