Fixed startup crash regression (bug 5607, r=dvander).

This commit is contained in:
Nicholas Hastings 2013-02-18 20:13:08 -05:00
parent be4ac7ca61
commit 7b42aba5ea
3 changed files with 6 additions and 6 deletions

View File

@ -124,8 +124,8 @@ static void logic_init(const sm_core_t* core, sm_logic_t* _logic)
playerhelpers = core->playerhelpers;
adminsys = core->adminsys;
gamehelpers = core->gamehelpers;
g_pSourcePawn = core->spe1;
g_pSourcePawn2 = core->spe2;
g_pSourcePawn = *core->spe1;
g_pSourcePawn2 = *core->spe2;
}
PLATFORM_EXTERN_C ITextParsers *get_textparsers()

View File

@ -99,8 +99,8 @@ struct sm_core_t
IPlayerManager *playerhelpers;
IAdminSystem *adminsys;
IGameHelpers *gamehelpers;
ISourcePawnEngine *spe1;
ISourcePawnEngine2 *spe2;
ISourcePawnEngine **spe1;
ISourcePawnEngine2 **spe2;
/* Functions */
void (*AddNatives)(sp_nativeinfo_t* nlist);
ConVar * (*FindConVar)(const char*);

View File

@ -224,8 +224,8 @@ static sm_core_t core_bridge =
&g_Players,
&g_Admins,
&g_HL2,
g_pSourcePawn,
g_pSourcePawn2,
&g_pSourcePawn,
&g_pSourcePawn2,
/* Functions */
add_natives,
find_convar,