1
0

cPlugin:BindConsoleCommand can be called statically.

This has been documented before it was written.
This commit is contained in:
madmaxoft 2014-03-14 14:37:39 +01:00
parent 35fe96b07d
commit 9b63156447

View File

@ -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++;
}