aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellDefines.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-01-20 19:27:44 +0100
committerShauren <shauren.trinity@gmail.com>2025-01-20 19:27:44 +0100
commit0e36fd93601f10949c848c1fc30ee3b70f2cecfa (patch)
tree16b7dec2365367ae30e7017e04bbf02612f00aa2 /src/server/game/Spells/SpellDefines.h
parent56fb627c7dd151190412468370db083ef3b044ad (diff)
Core/Spells: Replace SpellTargetPosition structure with WorldLocation
Diffstat (limited to 'src/server/game/Spells/SpellDefines.h')
-rw-r--r--src/server/game/Spells/SpellDefines.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Spells/SpellDefines.h b/src/server/game/Spells/SpellDefines.h
index 9bb1b1277fc..120f2fa68c1 100644
--- a/src/server/game/Spells/SpellDefines.h
+++ b/src/server/game/Spells/SpellDefines.h
@@ -328,10 +328,10 @@ enum SpellCastTargetFlags : uint32
struct TC_GAME_API SpellDestination
{
- SpellDestination();
- SpellDestination(float x, float y, float z, float orientation = 0.0f, uint32 mapId = MAPID_INVALID);
- SpellDestination(Position const& pos);
- SpellDestination(WorldLocation const& loc);
+ SpellDestination() { }
+ SpellDestination(float x, float y, float z, float orientation = 0.0f, uint32 mapId = MAPID_INVALID) : _position(mapId, x, y, z, orientation) { }
+ SpellDestination(Position const& pos) : _position(MAPID_INVALID, pos) { }
+ SpellDestination(WorldLocation const& loc) : _position(loc) { }
SpellDestination(WorldObject const& wObj);
void Relocate(Position const& pos);