diff options
author | Travis Howell | 2006-01-06 03:49:02 +0000 |
---|---|---|
committer | Travis Howell | 2006-01-06 03:49:02 +0000 |
commit | 2746e5be8c194b805f0ac99635bd168a775d320c (patch) | |
tree | 81fbde8da78a0381978f41c1cc46e1ec7b7ea22b /scumm | |
parent | ffff4755eeaf0d1f1b23fef91f6cc61061018001 (diff) | |
download | scummvm-rg350-2746e5be8c194b805f0ac99635bd168a775d320c.tar.gz scummvm-rg350-2746e5be8c194b805f0ac99635bd168a775d320c.tar.bz2 scummvm-rg350-2746e5be8c194b805f0ac99635bd168a775d320c.zip |
Nukes resource directly in HE games.
svn-id: r19924
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v7he.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp index 6153ecbf1b..d9bf89a9ad 100644 --- a/scumm/script_v7he.cpp +++ b/scumm/script_v7he.cpp @@ -533,20 +533,20 @@ void ScummEngine_v70he::o70_resourceRoutines() { break; case 104: // SO_NUKE_SCRIPT resid = pop(); - res.setResourceCounter(rtScript, resid, 0x7F); + res.nukeResource(rtScript, resid); break; case 105: // SO_NUKE_SOUND resid = pop(); - res.setResourceCounter(rtSound, resid, 0x7F); + res.nukeResource(rtSound, resid); break; case 106: // SO_NUKE_COSTUME resid = pop(); - res.setResourceCounter(rtCostume, resid, 0x7F); + res.nukeResource(rtCostume, resid); break; case 107: // SO_NUKE_ROOM resid = pop(); - res.setResourceCounter(rtRoom, resid, 0x7F); - res.setResourceCounter(rtRoomImage, resid, 0x7F); + res.nukeResource(rtRoom, resid); + res.nukeResource(rtRoomImage, resid); break; case 108: // SO_LOCK_SCRIPT resid = pop(); @@ -591,6 +591,7 @@ void ScummEngine_v70he::o70_resourceRoutines() { res.unlock(rtRoomImage, resid); break; case 116: + error("CrunchHeap"); break; case 117: // SO_LOAD_CHARSET resid = pop(); |