1
0

Added cPluginManager:BindCommand() form to the API.

That's the canonical way to call static functions.
This commit is contained in:
madmaxoft 2014-01-31 09:19:46 +01:00
parent 66427d754b
commit 5092ae5266

View File

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