Skip to content

Commit

Permalink
-Internal: Moved default constructor to highest level for proper dele…
Browse files Browse the repository at this point in the history
…tion of all AI-objects.
  • Loading branch information
mostlikely4r committed May 22, 2023
1 parent d2c170d commit 9d1de92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions playerbot/PlayerbotAIAware.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace ai
{
public:
PlayerbotAIAware(PlayerbotAI* const ai) : ai(ai) { }
virtual ~PlayerbotAIAware() = default;
virtual string getName() { return string(); }
protected:
PlayerbotAI* ai;
Expand Down
1 change: 0 additions & 1 deletion playerbot/strategy/Value.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ namespace ai
{
public:
UntypedValue(PlayerbotAI* ai, string name) : AiNamedObject(ai, name) {}
virtual ~UntypedValue() = default;
virtual void Update() {} //Nonfunctional see AiObjectContext::Update() to enable.
virtual void Reset() {}
virtual string Format() { return "?"; }
Expand Down

0 comments on commit 9d1de92

Please sign in to comment.