File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ ChatBot::ChatBot(ChatBot &&source)
77
77
_chatLogic = source._chatLogic ;
78
78
_rootNode = source._rootNode ;
79
79
_currentNode = source._currentNode ;
80
-
80
+ _chatLogic-> SetChatbotHandle ( this );
81
81
source._image = nullptr ;
82
82
source._chatLogic = nullptr ;
83
83
source._rootNode = nullptr ;
@@ -93,9 +93,13 @@ ChatBot &ChatBot::operator=(ChatBot &&source)
93
93
_chatLogic = source._chatLogic ;
94
94
_rootNode = source._rootNode ;
95
95
_currentNode = source._currentNode ;
96
+ _chatLogic->SetChatbotHandle (this );
97
+ source._image = nullptr ;
98
+ source._chatLogic = nullptr ;
99
+ source._rootNode = nullptr ;
100
+ source._currentNode = nullptr ;
96
101
return *this ;
97
102
}
98
- // //
99
103
// // EOF STUDENT CODE
100
104
101
105
void ChatBot::ReceiveMessageFromUser (std::string message)
You can’t perform that action at this time.
0 commit comments