Browse Source

Fix crash on removing spawnpoint

hlzbot-dirty
mittorn 8 years ago
parent
commit
c8c1091242
  1. 2
      dlls/player.cpp
  2. 2
      dlls/world.cpp

2
dlls/player.cpp

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

2
dlls/world.cpp

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

Loading…
Cancel
Save