diff options
author | jackpoz <giacomopoz@gmail.com> | 2013-12-14 18:41:26 +0100 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2013-12-14 18:41:26 +0100 |
commit | 1c0903e2862d4e4c7e17c8a45fe9dc3163b3ebce (patch) | |
tree | aed14a90ef879821548c2bf4eb66ec1b08f0bf86 /src/server/game/Spells/Spell.cpp | |
parent | dd546f073aa8acf54f525c0a0836a502d859580d (diff) |
Core/Misc: Fix some static analysis issues
Fix some static analysis issues about uninitialized values. Most of them are false positives, always initialized before being accessed, while some of them are real issues spotted by valgrind too.
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index c6ac5c21d55..db6a1299faa 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -70,12 +70,14 @@ SpellDestination::SpellDestination(float x, float y, float z, float orientation, _position.Relocate(x, y, z, orientation); _transportGUID = 0; _position.m_mapId = mapId; + _transportOffset.Relocate(0, 0, 0, 0); } SpellDestination::SpellDestination(Position const& pos) { _position.Relocate(pos); _transportGUID = 0; + _transportOffset.Relocate(0, 0, 0, 0); } SpellDestination::SpellDestination(WorldObject const& wObj) |