From cbf17c3eb9e292de09a4bf8cd8e1dbdc4736bbb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Thu, 22 Sep 2022 17:35:27 -0600 Subject: [PATCH] Fix errors on wrong command --- src/PlayerbotAIBase.cpp | 4 ++++ src/PlayerbotAIBase.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PlayerbotAIBase.cpp b/src/PlayerbotAIBase.cpp index 8cbd24a4..f7c01d68 100644 --- a/src/PlayerbotAIBase.cpp +++ b/src/PlayerbotAIBase.cpp @@ -9,6 +9,10 @@ PlayerbotAIBase::PlayerbotAIBase(bool isBotAI) : nextAICheckDelay(0), _isBotAI(i { } +void PlayerbotAIBase::UpdateAIInternal(uint32 elapsed, bool minimal) +{ +} + void PlayerbotAIBase::UpdateAI(uint32 elapsed, bool minimal) { if (nextAICheckDelay > elapsed) diff --git a/src/PlayerbotAIBase.h b/src/PlayerbotAIBase.h index 6fa40d6b..b83cd97e 100644 --- a/src/PlayerbotAIBase.h +++ b/src/PlayerbotAIBase.h @@ -17,7 +17,7 @@ class PlayerbotAIBase void IncreaseNextCheckDelay(uint32 delay); void YieldThread(bool delay = false); virtual void UpdateAI(uint32 elapsed, bool minimal = false); - virtual void UpdateAIInternal(uint32 elapsed, bool minimal = false) = 0; + virtual void UpdateAIInternal(uint32 elapsed, bool minimal = false); bool IsActive(); bool IsBotAI() const;