CStrike: Fix crash

This commit is contained in:
Arkshine 2015-02-01 20:43:06 +01:00
parent dd38ee103b
commit c47896232c

View File

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