aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorRobert Crossfield2012-01-28 00:02:05 +1100
committerTobias Gunkel2012-02-11 08:29:34 +0100
commitf299fc295e620a71d5fbb783b549b10807c97b99 (patch)
tree89982cfcca121d320ddbc220436267119687cb77 /engines
parent1e8d0664ac704160c3353d998a3b9978245128bd (diff)
downloadscummvm-rg350-f299fc295e620a71d5fbb783b549b10807c97b99.tar.gz
scummvm-rg350-f299fc295e620a71d5fbb783b549b10807c97b99.tar.bz2
scummvm-rg350-f299fc295e620a71d5fbb783b549b10807c97b99.zip
SCUMM: Fix for V0 objects
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp
index b51452170a..1d2581f915 100644
--- a/engines/scumm/script.cpp
+++ b/engines/scumm/script.cpp
@@ -1000,7 +1000,7 @@ void ScummEngine::killScriptsAndResources() {
for (i = 0; i < _numNewNames; i++) {
const int obj = _newNames[i];
if (obj) {
- const int owner = getOwner(obj);
+ const int owner = getOwner( (_game.version != 0 ? obj : OBJECT_V0_ID(obj) ) );
// We can delete custom name resources if either the object is
// no longer in use (i.e. not owned by anyone anymore); or if
// it is an object which is owned by a room.