aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-09 17:48:56 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-09 17:48:56 -0800
commitc36798f2ad66511b61aeffc9b86db03069a0bbb9 (patch)
tree1b6197767ac4130961595cbce5dd7867cc0ae907
parentb2cec10592b0b3fcd6c8da04fcce709fbf2e5a5e (diff)
Recompile
-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)