fix(Core): prevent potential crash (#4875)
This commit is contained in:
@@ -1211,6 +1211,11 @@ struct BfWGGameObjectBuilding
|
|||||||
|
|
||||||
void Init(GameObject* gobj, uint32 type, uint32 worldstate, uint8 damageText, uint8 destroyText)
|
void Init(GameObject* gobj, uint32 type, uint32 worldstate, uint8 damageText, uint8 destroyText)
|
||||||
{
|
{
|
||||||
|
if (!gobj)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// GameObject associated to object
|
// GameObject associated to object
|
||||||
m_Build = gobj->GetGUID();
|
m_Build = gobj->GetGUID();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user