summaryrefslogtreecommitdiffstats
path: root/lib/tolua++/src/bin/lua
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-17 18:28:04 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-17 18:28:04 +0100
commit0a505576e5220113dfbcc140b70659f822a17f44 (patch)
tree280367fc1f1319f5e36dfbeebd38fcdaa9b3596f /lib/tolua++/src/bin/lua
parentMerge branch 'master' into unreachable (diff)
downloadcuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar.gz
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar.bz2
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar.lz
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar.xz
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.tar.zst
cuberite-0a505576e5220113dfbcc140b70659f822a17f44.zip
Diffstat (limited to 'lib/tolua++/src/bin/lua')
-rw-r--r--lib/tolua++/src/bin/lua/enumerate.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tolua++/src/bin/lua/enumerate.lua b/lib/tolua++/src/bin/lua/enumerate.lua
index 5f0dedfe1..9c534a020 100644
--- a/lib/tolua++/src/bin/lua/enumerate.lua
+++ b/lib/tolua++/src/bin/lua/enumerate.lua
@@ -52,7 +52,7 @@ _global_output_enums = {}
-- write support code
function classEnumerate:supcode ()
- if _global_output_enums[self.name] ~= nil then
+ if _global_output_enums[self.name] == nil then
_global_output_enums[self.name] = 1
output("int tolua_is" .. self.name .. " (lua_State* L, int lo, int def, tolua_Error* err)")
output("{")