Use BaseRuntime instead of IPluginRuntime in PluginSys/ShareSys.

This commit is contained in:
David Anderson
2026-05-17 15:22:58 -07:00
parent 890c7119fe
commit e70cddfe3e
10 changed files with 40 additions and 33 deletions
+2 -1
View File
@@ -34,6 +34,7 @@
#include <stdarg.h>
#include "DebugReporter.h"
#include "Logger.h"
#include "sourcepawn/vm/base-runtime.h"
#include "sourcepawn/vm/environment.h"
DebugReport g_DbgReporter;
@@ -87,7 +88,7 @@ void DebugReport::GenerateErrorVA(IPluginContext *ctx, cell_t func_idx, int err,
{
func_idx >>= 1;
sp_public_t *function;
if (ctx->GetRuntime()->GetPublicByIndex(func_idx, &function) == SP_ERROR_NONE)
if (ctx->GetBaseRuntime()->GetPublicByIndex(func_idx, &function) == SP_ERROR_NONE)
{
g_Logger.LogError("[SM] Unable to call function \"%s\" due to above error(s).", function->name);
}