Fix crash on removing spawnpoint

This commit is contained in:
mittorn 2016-09-27 17:56:16 +00:00
parent 1443818300
commit c8c1091242
2 changed files with 2 additions and 2 deletions

View File

@ -2585,7 +2585,7 @@ BOOL IsSpawnPointValid( CBaseEntity *pPlayer, CBaseEntity *pSpot )
return TRUE; return TRUE;
} }
DLL_GLOBAL CBaseEntity *g_pLastSpawn; EHANDLE g_pLastSpawn;
inline int FNullEnt( CBaseEntity *ent ) { return ( ent == NULL ) || FNullEnt( ent->edict() ); } inline int FNullEnt( CBaseEntity *ent ) { return ( ent == NULL ) || FNullEnt( ent->edict() ); }
/* /*

View File

@ -38,7 +38,7 @@
extern CGraph WorldGraph; extern CGraph WorldGraph;
extern CSoundEnt *pSoundEnt; extern CSoundEnt *pSoundEnt;
extern CBaseEntity *g_pLastSpawn; extern EHANDLE g_pLastSpawn;
DLL_GLOBAL edict_t *g_pBodyQueueHead; DLL_GLOBAL edict_t *g_pBodyQueueHead;
CGlobalState gGlobalState; CGlobalState gGlobalState;
extern DLL_GLOBAL int gDisplayTitle; extern DLL_GLOBAL int gDisplayTitle;