Use internal sp::Environment directly in core/logic.
Also remove ISourcePawnEngine and ISourcePawnEngine2 pointers since they're now redundant.
This commit is contained in:
@@ -354,7 +354,7 @@ cell_t AddSettingsMenuItem(IPluginContext *pContext, const cell_t *params)
|
||||
|
||||
/* Track this in case the plugin unloads */
|
||||
|
||||
IPlugin *pPlugin = plsys->FindPluginByContext(pContext->GetContext());
|
||||
IPlugin *pPlugin = plsys->FindPluginByContext(pContext);
|
||||
std::vector<char *> *pList = NULL;
|
||||
|
||||
if (!pPlugin->GetProperty("SettingsMenuItems", (void **)&pList, false) || !pList)
|
||||
@@ -424,7 +424,7 @@ cell_t AddSettingsPrefabMenuItem(IPluginContext *pContext, const cell_t *params)
|
||||
|
||||
/* Track this in case the plugin unloads */
|
||||
|
||||
IPlugin *pPlugin = plsys->FindPluginByContext(pContext->GetContext());
|
||||
IPlugin *pPlugin = plsys->FindPluginByContext(pContext);
|
||||
std::vector<char *> *pList = NULL;
|
||||
|
||||
if (!pPlugin->GetProperty("SettingsMenuItems", (void **)&pList, false) || !pList)
|
||||
|
||||
Reference in New Issue
Block a user