core/DebugReporter.cpp
changeset 2195 5b70179559f9
parent 2193 db7c6362f3f2
child 2226 d10b38524be3
     1.1 --- a/core/DebugReporter.cpp	Fri Jul 11 08:31:57 2008 +0000
     1.2 +++ b/core/DebugReporter.cpp	Fri Jul 11 09:24:12 2008 +0000
     1.3 @@ -68,7 +68,7 @@
     1.4  		{
     1.5  			func_idx >>= 1;
     1.6  			sp_public_t *function;
     1.7 -			if (ctx->GetPublicByIndex(func_idx, &function) == SP_ERROR_NONE)
     1.8 +			if (ctx->GetRuntime()->GetPublicByIndex(func_idx, &function) == SP_ERROR_NONE)
     1.9  			{
    1.10  				g_Logger.LogError("[SM] Unable to call function \"%s\" due to above error(s).", function->name);
    1.11  			}
    1.12 @@ -98,7 +98,7 @@
    1.13  	g_Logger.LogError("[SM] %s", buffer);
    1.14  
    1.15  	IPluginDebugInfo *pDebug;
    1.16 -	if ((pDebug = pContext->GetDebugInfo()) == NULL)
    1.17 +	if ((pDebug = pContext->GetRuntime()->GetDebugInfo()) == NULL)
    1.18  	{
    1.19  		g_Logger.LogError("[SM] Debug mode is not enabled for \"%s\"", plname);
    1.20  		g_Logger.LogError("[SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug %d on",