1
0

cPluginManager.AddHook old-style API usage prints the stack trace.

This eases migration to #121 API.
This commit is contained in:
madmaxoft 2013-08-21 21:41:34 +02:00
parent e263fc7c72
commit 3957ca94e7

View File

@ -893,6 +893,7 @@ static int tolua_cPluginManager_AddHook(lua_State * tolua_S)
{
// The next params are a cPlugin and a number, assume style 3 or 4
LOGINFO("cPluginManager.AddHook(): Deprecated format used, use cPluginManager.AddHook(HOOK_TYPE, CallbackFunction) instead. Fixing the call for you.");
S.LogStackTrace();
return tolua_cPluginManager_AddHook_DefFn(PlgMgr, S, ParamIdx);
}