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-861f7616d084
master
Giel van Schijndel 2008-09-14 00:48:29 +00:00
parent ee7cfc1ac5
commit 41e74888ef
1 changed files with 1 additions and 1 deletions

View File

@ -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 *");