Added cPluginManager:BindCommand() form to the API.
That's the canonical way to call static functions.
This commit is contained in:
parent
66427d754b
commit
5092ae5266
@ -1429,7 +1429,10 @@ static int tolua_cPluginManager_BindCommand(lua_State * L)
|
||||
// Read the arguments to this API call:
|
||||
tolua_Error tolua_err;
|
||||
int idx = 1;
|
||||
if (tolua_isusertype(L, 1, "cPluginManager", 0, &tolua_err))
|
||||
if (
|
||||
tolua_isusertype (L, 1, "cPluginManager", 0, &tolua_err) ||
|
||||
tolua_isusertable(L, 1, "cPluginManager", 0, &tolua_err)
|
||||
)
|
||||
{
|
||||
idx++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user