diff options
| author | Oliver Kiehl | 2003-06-05 22:26:06 +0000 | 
|---|---|---|
| committer | Oliver Kiehl | 2003-06-05 22:26:06 +0000 | 
| commit | 1200d5997ed7b9611c1695ee46c5c828584ef22b (patch) | |
| tree | 8db882659879d5b2ad81ec6b72a36bda5c6a1272 | |
| parent | 717bdd92239a65923d9a96b5e59bef325e46ac6c (diff) | |
| download | scummvm-rg350-1200d5997ed7b9611c1695ee46c5c828584ef22b.tar.gz scummvm-rg350-1200d5997ed7b9611c1695ee46c5c828584ef22b.tar.bz2 scummvm-rg350-1200d5997ed7b9611c1695ee46c5c828584ef22b.zip | |
fixed switch opcode
svn-id: r8337
| -rw-r--r-- | sky/logic.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/sky/logic.cpp b/sky/logic.cpp index f740f02b38..085c93b29a 100644 --- a/sky/logic.cpp +++ b/sky/logic.cpp @@ -1219,9 +1219,8 @@ script:  				scriptData += 2;  			} while (--s); -			s = READ_LE_UINT16(scriptData++); -			scriptData += s; // use the default -			scriptData--; +			if (s == 0) +				scriptData += READ_LE_UINT16(scriptData++)/2 - 1; // use the default  			break;  		case 15: // push_offset  			push( *(uint16 *)SkyCompact::getCompactElem(_compact, READ_LE_UINT16(scriptData++)) ); | 
