From ec629beb3145302e96ac6d8844a4dc29d011dbc8 Mon Sep 17 00:00:00 2001 From: Artem Serebriyskiy Date: Sat, 22 Feb 2014 15:46:22 +0400 Subject: [PATCH] Fixing segfault --- Source/Modules/lua.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/lua.cxx b/Source/Modules/lua.cxx index f521824a0..a516b5eb0 100644 --- a/Source/Modules/lua.cxx +++ b/Source/Modules/lua.cxx @@ -1557,7 +1557,7 @@ public: if (result == SWIG_OK) { // This will add static member variable to the class namespace with name ClassName_VarName if (v2_compatibility) { - Swig_save("lua_staticmembervariableHandler", n, "lua:name"); + Swig_save("lua_staticmembervariableHandler", n, "lua:name", NIL); String *target_name = Getattr(n, "lua:name"); String *v2_name = Swig_name_member(NIL, class_symname, target_name); //Printf( stdout, "Name %s, class %s, compt. name %s\n", target_name, class_symname, v2_name ); // TODO: REMOVE