From f3a0a53457a28a3401ec12bbf9254629515b02d9 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Wed, 19 Jul 2023 12:08:15 +0800 Subject: [PATCH] fix compile error in windows platform --- src/strategy/rogue/AssassinationRogueStrategy.h | 1 + src/strategy/rogue/DpsRogueStrategy.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/strategy/rogue/AssassinationRogueStrategy.h b/src/strategy/rogue/AssassinationRogueStrategy.h index ae025ae4..b6aa26b5 100644 --- a/src/strategy/rogue/AssassinationRogueStrategy.h +++ b/src/strategy/rogue/AssassinationRogueStrategy.h @@ -13,6 +13,7 @@ public: virtual void InitTriggers(std::vector &triggers) override; virtual std::string const getName() override { return "melee"; } virtual NextAction** getDefaultActions() override; + uint32 GetType() const override { return MeleeCombatStrategy::GetType() | STRATEGY_TYPE_DPS; } }; #endif \ No newline at end of file diff --git a/src/strategy/rogue/DpsRogueStrategy.h b/src/strategy/rogue/DpsRogueStrategy.h index 3d9ec50a..4baf789b 100644 --- a/src/strategy/rogue/DpsRogueStrategy.h +++ b/src/strategy/rogue/DpsRogueStrategy.h @@ -18,7 +18,7 @@ class DpsRogueStrategy : public MeleeCombatStrategy void InitTriggers(std::vector& triggers) override; std::string const getName() override { return "dps"; } NextAction** getDefaultActions() override; - virtual int GetType() { return MeleeCombatStrategy::GetType() | STRATEGY_TYPE_DPS; } + uint32 GetType() const override { return MeleeCombatStrategy::GetType() | STRATEGY_TYPE_DPS; } }; class StealthedRogueStrategy : public Strategy