fix(Core): prevent potential crash (#4875)

This commit is contained in:
Cláudio Costa
2021-03-19 16:56:51 +00:00
committed by GitHub
parent cb0fb719db
commit 11ff55e075

View File

@@ -1211,6 +1211,11 @@ struct BfWGGameObjectBuilding
void Init(GameObject* gobj, uint32 type, uint32 worldstate, uint8 damageText, uint8 destroyText)
{
if (!gobj)
{
return;
}
// GameObject associated to object
m_Build = gobj->GetGUID();