diff options
| author | Rat <gmstreetrat@gmail.com> | 2015-04-06 13:11:35 +0200 |
|---|---|---|
| committer | DDuarte <dnpd.dd@gmail.com> | 2015-05-19 13:58:40 +0100 |
| commit | 6dcfe9ba178a93046104439b43d84ad1e9f6969d (patch) | |
| tree | e89d7ba8bdb819d106204b73794c535d4b161e7c /src/server/game/Globals/ObjectMgr.cpp | |
| parent | 916ce6f4f348f789e85df57000b94672afe692c1 (diff) | |
Core/GameObjects: fixed build in gcc
(cherry picked from commit c5bbc9287d1e8ae9335598780ebd7db47b522fb2)
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
| -rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 9bda0883abd..a3414c72613 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -1067,17 +1067,17 @@ void ObjectMgr::LoadGameObjectAddons() } GameObjectAddon& gameObjectAddon = _gameObjectAddonStore[guid]; - gameObjectAddon.InvisibilityType = InvisibilityType(fields[1].GetUInt8()); + gameObjectAddon.invisibilityType = InvisibilityType(fields[1].GetUInt8()); gameObjectAddon.InvisibilityValue = fields[2].GetUInt32(); - if (gameObjectAddon.InvisibilityType >= TOTAL_INVISIBILITY_TYPES) + if (gameObjectAddon.invisibilityType >= TOTAL_INVISIBILITY_TYPES) { TC_LOG_ERROR("sql.sql", "GameObject (GUID: " UI64FMTD ") has invalid InvisibilityType in `gameobject_addon`", guid); - gameObjectAddon.InvisibilityType = INVISIBILITY_GENERAL; + gameObjectAddon.invisibilityType = INVISIBILITY_GENERAL; gameObjectAddon.InvisibilityValue = 0; } - if (gameObjectAddon.InvisibilityType && !gameObjectAddon.InvisibilityValue) + if (gameObjectAddon.invisibilityType && !gameObjectAddon.InvisibilityValue) { TC_LOG_ERROR("sql.sql", "GameObject (GUID: " UI64FMTD ") has InvisibilityType set but has no InvisibilityValue in `gameobject_addon`, set to 1", guid); gameObjectAddon.InvisibilityValue = 1; |
