From f299fc295e620a71d5fbb783b549b10807c97b99 Mon Sep 17 00:00:00 2001 From: Robert Crossfield Date: Sat, 28 Jan 2012 00:02:05 +1100 Subject: [PATCH] SCUMM: Fix for V0 objects --- engines/scumm/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp index b51452170ae..1d2581f915f 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.