From 0732992c4fe8e9df418a0601d3b5867e83d83094 Mon Sep 17 00:00:00 2001 From: Mikusch <25514044+Mikusch@users.noreply.github.com> Date: Tue, 14 Jul 2026 10:41:40 +0200 Subject: [PATCH] Fix GetFunctionByName ignoring its plugin handle (#2508) --- core/logic/smn_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logic/smn_functions.cpp b/core/logic/smn_functions.cpp index 44a63e21..4e65fc9d 100644 --- a/core/logic/smn_functions.cpp +++ b/core/logic/smn_functions.cpp @@ -129,7 +129,7 @@ static cell_t sm_GetFunctionByName(IPluginContext *pContext, const cell_t *param pContext->LocalToString(params[2], &name); /* Get public function index */ - if (pContext->GetBaseRuntime()->FindPublicByName(name, &idx) == SP_ERROR_NOT_FOUND) + if (pPlugin->GetBaseContext()->GetBaseRuntime()->FindPublicByName(name, &idx) == SP_ERROR_NOT_FOUND) { /* Return INVALID_FUNCTION if not found */ return pContext->GetNullFunctionValue();