diff --git a/sourcepawn/jit/jit_shared.h b/sourcepawn/jit/jit_shared.h index 2aec77b0..945fc77d 100644 --- a/sourcepawn/jit/jit_shared.h +++ b/sourcepawn/jit/jit_shared.h @@ -74,7 +74,6 @@ typedef struct sp_context_s { cell_t rval; /**< Return value from InvokeFunction() */ sp_plugin_t *plugin; - PluginContext *basecx; } sp_context_t; //#define SPFLAG_PLUGIN_DEBUG (1<<0) diff --git a/sourcepawn/jit/plugin-context.cpp b/sourcepawn/jit/plugin-context.cpp index 1c173e15..704a1e43 100644 --- a/sourcepawn/jit/plugin-context.cpp +++ b/sourcepawn/jit/plugin-context.cpp @@ -61,7 +61,6 @@ PluginContext::PluginContext(PluginRuntime *pRuntime) tracker_.pBase = (ucell_t *)malloc(1024); tracker_.pCur = tracker_.pBase; tracker_.size = 1024 / sizeof(cell_t); - m_ctx.basecx = this; m_ctx.plugin = const_cast(pRuntime->plugin()); } @@ -867,7 +866,7 @@ PluginContext::invokeNative(ucell_t native_idx, cell_t *params) return 0; } - cell_t result = native->pfn(m_ctx.basecx, params); + cell_t result = native->pfn(this, params); if (native_error_ != SP_ERROR_NONE) return result;