diff options
author | Max Horn | 2011-05-14 23:50:18 +0200 |
---|---|---|
committer | Max Horn | 2011-05-14 23:50:43 +0200 |
commit | 82343f6649fed0a8b315e31c8b5177e4840b76e4 (patch) | |
tree | cb05cc97f12ce19bfd67aef9cc2cce7cdff9fa53 /engines/scumm/script.cpp | |
parent | efac5c42d7d6ec91440e7c03e8205ce474e5437d (diff) | |
download | scummvm-rg350-82343f6649fed0a8b315e31c8b5177e4840b76e4.tar.gz scummvm-rg350-82343f6649fed0a8b315e31c8b5177e4840b76e4.tar.bz2 scummvm-rg350-82343f6649fed0a8b315e31c8b5177e4840b76e4.zip |
SCUMM: Remove some unused var warnings (see bug #3293800)
Diffstat (limited to 'engines/scumm/script.cpp')
-rw-r--r-- | engines/scumm/script.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/scumm/script.cpp b/engines/scumm/script.cpp index 4402445b1d..cd9a0ed1c8 100644 --- a/engines/scumm/script.cpp +++ b/engines/scumm/script.cpp @@ -36,7 +36,7 @@ namespace Scumm { /* Start executing script 'script' with the given parameters */ void ScummEngine::runScript(int script, bool freezeResistant, bool recursive, int *lvarptr, int cycle) { ScriptSlot *s; - byte *scriptPtr; + //byte *scriptPtr; uint32 scriptOffs; byte scriptType; int slot; @@ -48,7 +48,8 @@ void ScummEngine::runScript(int script, bool freezeResistant, bool recursive, in stopScript(script); if (script < _numGlobalScripts) { - scriptPtr = getResourceAddress(rtScript, script); + // Call getResourceAddress to ensure the resource is loaded & its usage count reset + /*scriptPtr =*/ getResourceAddress(rtScript, script); scriptOffs = _resourceHeaderSize; scriptType = WIO_GLOBAL; |