NSIO: Check is entity was freed before calling Respawn()

This commit is contained in:
Marco Cawthorne 2022-08-12 12:58:26 -07:00
parent 015eaa34fd
commit fcf846dee0
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ NSIO::Init(void)
#endif
Spawned();
/* entity may be marked as deleted */
if (wasfreed(this))
return;
#ifdef SERVER
/* we're loading entity data, don't call Respawn() */
if (g_isloading == true)