mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 01:15:58 +00:00
SCUMM: Fix for V0 objects
This commit is contained in:
parent
1e8d0664ac
commit
f299fc295e
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user