cPlugin:BindConsoleCommand can be called statically.
This has been documented before it was written.
This commit is contained in:
parent
35fe96b07d
commit
9b63156447
@ -1522,7 +1522,10 @@ static int tolua_cPluginManager_BindConsoleCommand(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