Revert erroneous changes

This commit is contained in:
Capostrophic 2018-06-08 19:18:53 +03:00 committed by GitHub
parent dd2a11b243
commit b274931165
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -431,11 +431,8 @@ namespace MWDialogue
void DialogueManager::addChoice (const std::string& text, int choice) void DialogueManager::addChoice (const std::string& text, int choice)
{ {
if (!mGoodbye) mIsInChoice = true;
{ mChoices.push_back(std::make_pair(text, choice));
mIsInChoice = true;
mChoices.push_back(std::make_pair(text, choice));
}
} }
const std::vector<std::pair<std::string, int> >& DialogueManager::getChoices() const std::vector<std::pair<std::string, int> >& DialogueManager::getChoices()
@ -450,8 +447,8 @@ namespace MWDialogue
void DialogueManager::goodbye() void DialogueManager::goodbye()
{ {
if (!mIsInChoice) mIsInChoice = false;
mGoodbye = true; mGoodbye = true;
} }
void DialogueManager::persuade(int type, ResponseCallback* callback) void DialogueManager::persuade(int type, ResponseCallback* callback)