summaryrefslogtreecommitdiff
path: root/script/parser/compile.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser/compile.lua')
-rw-r--r--script/parser/compile.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/compile.lua b/script/parser/compile.lua
index 20546e4a..cc142dfa 100644
--- a/script/parser/compile.lua
+++ b/script/parser/compile.lua
@@ -1024,7 +1024,7 @@ local function parseShortString()
fastForwardToken(currentOffset)
local right = getPosition(currentOffset - 1, 'right')
local byte = tointeger(numbers)
- if byte <= 255 then
+ if byte and byte <= 255 then
stringIndex = stringIndex + 1
stringPool[stringIndex] = schar(byte)
else