Merge pull request #193 from Arkshine/fix/cstrike-crash-on-start

Cstrike: Fix crash at server start
This commit is contained in:
Vincent Herbet 2015-02-02 12:50:56 +01:00
commit c4ec65bd5a

View File

@ -61,9 +61,6 @@ void OnAmxxAttach()
{
MF_Log("UTIL_FindEntByString is not available - native cs_find_ent_by_class() has been disabled");
}
// Search pev offset automatically.
G_OffsetHandler = new OffsetHandler;
}
void OnPluginsLoaded()
@ -81,6 +78,12 @@ void OnPluginsLoaded()
// And enable/disable detours when necessary.
ToggleDetour_ClientCommands(ForwardInternalCommand != -1 || ForwardOnBuy != -1 || ForwardOnBuy != -1);
ToggleDetour_BuyCommands(ForwardOnBuy != -1);
// Search pev offset automatically.
if (!G_OffsetHandler)
{
G_OffsetHandler = new OffsetHandler;
}
}
void OnAmxxDetach()