From 30bd58be6746ed10d5ff242845e0252c45163210 Mon Sep 17 00:00:00 2001 From: privatecore Date: Sun, 28 Sep 2025 13:42:03 +0200 Subject: [PATCH] Fix wrong PlayerbotAI parameter name passed to the constructor (#1672) --- src/strategy/StrategyContext.h | 4 ++-- src/strategy/actions/ShareQuestAction.h | 2 +- src/strategy/generic/GrindingStrategy.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/strategy/StrategyContext.h b/src/strategy/StrategyContext.h index ff16df1a..a95ccbdf 100644 --- a/src/strategy/StrategyContext.h +++ b/src/strategy/StrategyContext.h @@ -184,8 +184,8 @@ private: static Strategy* grind(PlayerbotAI* botAI) { return new GrindingStrategy(botAI); } static Strategy* avoid_aoe(PlayerbotAI* botAI) { return new AvoidAoeStrategy(botAI); } static Strategy* tank_face(PlayerbotAI* botAI) { return new TankFaceStrategy(botAI); } - static Strategy* move_random(PlayerbotAI* ai) { return new MoveRandomStrategy(ai); } - static Strategy* combat_formation(PlayerbotAI* ai) { return new CombatFormationStrategy(ai); } + static Strategy* move_random(PlayerbotAI* botAI) { return new MoveRandomStrategy(botAI); } + static Strategy* combat_formation(PlayerbotAI* botAI) { return new CombatFormationStrategy(botAI); } static Strategy* move_from_group(PlayerbotAI* botAI) { return new MoveFromGroupStrategy(botAI); } static Strategy* world_buff(PlayerbotAI* botAI) { return new WorldBuffStrategy(botAI); } }; diff --git a/src/strategy/actions/ShareQuestAction.h b/src/strategy/actions/ShareQuestAction.h index d2289ab1..efc87010 100644 --- a/src/strategy/actions/ShareQuestAction.h +++ b/src/strategy/actions/ShareQuestAction.h @@ -20,7 +20,7 @@ public: class AutoShareQuestAction : public ShareQuestAction { public: - AutoShareQuestAction(PlayerbotAI* ai) : ShareQuestAction(botAI, "auto share quest") {} + AutoShareQuestAction(PlayerbotAI* botAI) : ShareQuestAction(botAI, "auto share quest") {} bool Execute(Event event) override; bool isUseful() override; diff --git a/src/strategy/generic/GrindingStrategy.h b/src/strategy/generic/GrindingStrategy.h index 6ab11904..d04060c4 100644 --- a/src/strategy/generic/GrindingStrategy.h +++ b/src/strategy/generic/GrindingStrategy.h @@ -24,7 +24,7 @@ public: class MoveRandomStrategy : public NonCombatStrategy { public: - MoveRandomStrategy(PlayerbotAI* ai) : NonCombatStrategy(botAI) {} + MoveRandomStrategy(PlayerbotAI* botAI) : NonCombatStrategy(botAI) {} std::string const getName() override { return "move random"; } void InitTriggers(std::vector& triggers) override; };