aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nomsu_decompiler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_decompiler.lua b/nomsu_decompiler.lua
index 21facdc..83561b3 100644
--- a/nomsu_decompiler.lua
+++ b/nomsu_decompiler.lua
@@ -58,7 +58,7 @@ tree_to_inline_nomsu = function(tree)
for i, bit in ipairs(tree) do
if type(bit) == "string" then
local clump_words
- if type(tree[i - 1]) then
+ if type(tree[i - 1]) == 'string' then
clump_words = is_operator(bit) ~= is_operator(tree[i - 1])
else
clump_words = is_operator(bit)