Skip to content

Commit

Permalink
[Playerbot] HelpAction Initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
PargeLenis committed Feb 10, 2023
1 parent bb74c98 commit d452ceb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modules/Bots/playerbot/strategy/actions/HelpAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@

using namespace ai;

HelpAction::HelpAction(PlayerbotAI* ai) : Action(ai, "help")
HelpAction::HelpAction(PlayerbotAI* ai) : Action(ai, "help"), chatContext(new ChatActionContext())
{
}

HelpAction::HelpAction(const HelpAction& other) : Action(ai, "help"), chatContext(new ChatActionContext())
{
chatContext = new ChatActionContext();
}

HelpAction::~HelpAction()
Expand Down
1 change: 1 addition & 0 deletions src/modules/Bots/playerbot/strategy/actions/HelpAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ namespace ai
class HelpAction : public Action {
public:
HelpAction(PlayerbotAI* ai);
HelpAction(const HelpAction& other);
virtual ~HelpAction();
virtual bool Execute(Event event);

Expand Down

0 comments on commit d452ceb

Please sign in to comment.