From 8fbbd28f7948323bf20ea281ab570ca8889f6854 Mon Sep 17 00:00:00 2001 From: Oliver Kiehl Date: Wed, 22 Jun 2005 08:33:46 +0000 Subject: disambiguate undefined operation by removing unneeded calculation. svn-id: r18434 --- sky/logic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++)) ); -- cgit v1.2.3