Make sure to use "destroy" as the method name in lua_widget_destroy for error message generation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6009 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
ee7cfc1ac5
commit
41e74888ef
|
@ -508,7 +508,7 @@ static int lua_widget_destroy(lua_State* const L)
|
|||
_widget *self;
|
||||
swig_lua_userdata* usr;
|
||||
|
||||
SWIG_check_num_args("addChild", 1, 1);
|
||||
SWIG_check_num_args("destroy", 1, 1);
|
||||
if (!SWIG_isptrtype(L, 1))
|
||||
SWIG_fail_arg("destroy", 1, "_widget *");
|
||||
|
||||
|
|
Loading…
Reference in New Issue