From c8c10912428982db2d0f83780e91d81e3fd3013f Mon Sep 17 00:00:00 2001 From: mittorn Date: Tue, 27 Sep 2016 17:56:16 +0000 Subject: [PATCH] Fix crash on removing spawnpoint --- dlls/player.cpp | 2 +- dlls/world.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/player.cpp b/dlls/player.cpp index 48131855..2f67ac2f 100644 --- a/dlls/player.cpp +++ b/dlls/player.cpp @@ -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() ); } /* diff --git a/dlls/world.cpp b/dlls/world.cpp index fe119919..4ac56925 100644 --- a/dlls/world.cpp +++ b/dlls/world.cpp @@ -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;