diff options
author | megamage <none@none> | 2009-06-01 23:45:55 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-01 23:45:55 -0500 |
commit | 77889ffa8bb914abc46ebf93c6c150f3d11cc1e4 (patch) | |
tree | 0b10f774146980e1fa08afaa39f563b48befa7a5 /src/game/GameObject.h | |
parent | d0878ec4143147bb03973b23f1519222e1636d97 (diff) |
*Save/load wintergrasp building health when grid loaded/unloaded.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GameObject.h')
-rw-r--r-- | src/game/GameObject.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/GameObject.h b/src/game/GameObject.h index b365c7494ac..33c9fa63f9e 100644 --- a/src/game/GameObject.h +++ b/src/game/GameObject.h @@ -361,7 +361,7 @@ struct GameObjectInfo uint32 unk8; uint32 destroyedEventId; //9 uint32 destroyedDisplayId; //10 - } destructibleBuilding; + } building; //34 GAMEOBJECT_TYPE_GUILDBANK - empty //35 GAMEOBJECT_TYPE_TRAPDOOR struct @@ -393,7 +393,7 @@ union GameObjectValue struct { uint32 health; - }destructibleBuilding; + }building; }; // GCC have alternative #pragma pack() syntax and old gcc version not support pack(pop), also any gcc version not support it at some platform @@ -473,6 +473,7 @@ class TRINITY_DLL_SPEC GameObject : public WorldObject static GameObject* GetGameObject(WorldObject& object, uint64 guid); GameObjectInfo const* GetGOInfo() const { return m_goInfo; } GameObjectData const* GetGOData() const { return m_goData; } + GameObjectValue * GetGOValue() const { return m_goValue; } bool IsTransport() const; |