Strip sourcehook containers (#2578)

This commit is contained in:
Benoist
2026-09-17 20:56:47 -04:00
committed by GitHub
parent 3723860af3
commit 82cd96aef6
94 changed files with 512 additions and 671 deletions
+3 -3
View File
@@ -32,7 +32,7 @@
#include <stdio.h>
#include "sourcemod.h"
#include "sourcemm_api.h"
#include <sh_string.h>
#include <string>
#include "CoreConfig.h"
#include "Logger.h"
#include "sm_stringutil.h"
@@ -58,7 +58,7 @@ SH_DECL_HOOK0(IVEngineServer, GetMapEntitiesString, SH_NOATTRIB, 0, const char *
SourceModBase g_SourceMod;
SourceHook::String g_BaseDir;
std::string g_BaseDir;
ISourcePawnEnvironment *g_pPawnEnv = NULL;
IdentityToken_t *g_pCoreIdent = NULL;
IForward *g_pOnMapInit = nullptr;
@@ -667,7 +667,7 @@ void SourceModBase::RemoveGameFrameHook(GAME_FRAME_HOOK hook)
{
if (m_frame_hooks[i] == hook)
{
m_frame_hooks.erase(m_frame_hooks.iterAt(i));
m_frame_hooks.erase(m_frame_hooks.begin() + i);
return;
}
}