fix(Core): prevent potential crash (#4875)
This commit is contained in:
parent
cb0fb719db
commit
11ff55e075
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue