Skip to content

Commit

Permalink
[Playerbot] Add copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
PargeLenis committed Feb 10, 2023
1 parent bb74c98 commit 4ce4f47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/Bots/playerbot/strategy/actions/HelpAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ HelpAction::HelpAction(PlayerbotAI* ai) : Action(ai, "help")
chatContext = new ChatActionContext();
}

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

HelpAction::~HelpAction()
{
delete chatContext;
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 4ce4f47

Please sign in to comment.