aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiehl2005-06-22 08:33:46 +0000
committerOliver Kiehl2005-06-22 08:33:46 +0000
commit8fbbd28f7948323bf20ea281ab570ca8889f6854 (patch)
tree773a965026bce21a96738f80289f7c5974e44879
parent8f4077d9926ec6f59419c33102703bed7ec043b5 (diff)
downloadscummvm-rg350-8fbbd28f7948323bf20ea281ab570ca8889f6854.tar.gz
scummvm-rg350-8fbbd28f7948323bf20ea281ab570ca8889f6854.tar.bz2
scummvm-rg350-8fbbd28f7948323bf20ea281ab570ca8889f6854.zip
disambiguate undefined operation by removing unneeded calculation.
svn-id: r18434
-rw-r--r--sky/logic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sky/logic.cpp b/sky/logic.cpp
index f384b17c29..d2cb3b4af3 100644
--- a/sky/logic.cpp
+++ b/sky/logic.cpp
@@ -1337,7 +1337,7 @@ script:
} while (--s);
if (s == 0)
- scriptData += READ_LE_UINT16(scriptData++)/2 - 1; // use the default
+ scriptData += READ_LE_UINT16(scriptData)/2; // use the default
break;
case 15: // push_offset
push( *(uint16 *)_skyCompact->getCompactElem(_compact, READ_LE_UINT16(scriptData++)) );