From 4bb353e75b44b2f7d36226780c58099ca80f2bb6 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 26 Mar 2022 12:12:10 +0100 Subject: [PATCH] Make ClearBattleData virtual --- src/Battling/Models/Creature.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Battling/Models/Creature.hpp b/src/Battling/Models/Creature.hpp index 164dcec..27bf98d 100644 --- a/src/Battling/Models/Creature.hpp +++ b/src/Battling/Models/Creature.hpp @@ -132,7 +132,7 @@ namespace CreatureLib::Battling { } void SetBattleData(const ArbUt::BorrowedPtr& battle, const ArbUt::BorrowedPtr& side); - void ClearBattleData() noexcept; + virtual void ClearBattleData() noexcept; inline const ArbUt::OptionalBorrowedPtr& GetBattle() const { return _battleData.Battle; } inline const ArbUt::OptionalBorrowedPtr& GetBattleSide() const { return _battleData.Side; } void SetOnBattleField(bool value);