diff options
-rw-r--r-- | sky/logic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sky/logic.cpp b/sky/logic.cpp index b3c0899957..938604e471 100644 --- a/sky/logic.cpp +++ b/sky/logic.cpp @@ -1304,7 +1304,7 @@ script: a = pop(); // and value to switch on do { - if (a == *scriptData) { + if (a == READ_LE_UINT16(scriptData)) { scriptData += READ_LE_UINT16(scriptData + 1)/2; scriptData++; break; |