mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
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)
|
||||
{
|
||||
if (!gobj)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// GameObject associated to object
|
||||
m_Build = gobj->GetGUID();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user