Fix TC build

This commit is contained in:
Rochet2
2019-07-17 20:49:08 +03:00
parent d2b3bc867e
commit 897d5e9159
2 changed files with 13 additions and 4 deletions

View File

@@ -267,12 +267,18 @@ namespace LuaGameObject
owner->RemoveGameObject(go, false);
}
if (deldb)
{
#ifdef TRINITY
GameObject::DeleteFromDB(go->GetSpawnId());
#else
go->DeleteFromDB();
#endif
}
go->SetRespawnTime(0);
go->Delete();
if (deldb)
go->DeleteFromDB();
Eluna::CHECKOBJ<ElunaObject>(L, 1)->Invalidate();
return 0;
}