diff options
Diffstat (limited to 'sky')
-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++)) ); |