aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/CreatureAI.h
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-02-24 15:52:09 -0300
committerfunjoker <funjoker109@gmail.com>2021-08-08 21:21:34 +0200
commita1a00f823e7e47e8cb652b71a839c1d0875a8f84 (patch)
treeddffcb6efbfed6d4d27d8dd9320e552365a34545 /src/server/game/AI/CreatureAI.h
parent30f8adda86f0c4376595866607a2e03cc88406eb (diff)
Core/Entities: kill unused return value from Unit::HandleSpellClick
- AI hook will now receive the result by copy, as modifying it had no effect - Some renaming: result->spellClickHandled, clickPair is actually clickBounds, the clickPair is the pair <creatureID, SpellClickInfo> (cherry picked from commit 98d6258efdc07b53808ba6177e5427c65163bc0d)
Diffstat (limited to 'src/server/game/AI/CreatureAI.h')
-rw-r--r--src/server/game/AI/CreatureAI.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/CreatureAI.h b/src/server/game/AI/CreatureAI.h
index 30ba99a4abf..a20afd9653c 100644
--- a/src/server/game/AI/CreatureAI.h
+++ b/src/server/game/AI/CreatureAI.h
@@ -200,7 +200,7 @@ class TC_GAME_API CreatureAI : public UnitAI
virtual void PassengerBoarded(Unit* /*passenger*/, int8 /*seatId*/, bool /*apply*/) { }
- virtual void OnSpellClick(Unit* /*clicker*/, bool& /*result*/) { }
+ virtual void OnSpellClick(Unit* /*clicker*/, bool /*spellClickHandled*/) { }
virtual bool CanSeeAlways(WorldObject const* /*obj*/) { return false; }