Skip to content

Commit

Permalink
Fixed issue with quest failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed Dec 18, 2017
1 parent d8e242a commit 30056a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stratagus/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2821,6 +2821,9 @@ std::string CPlayer::HasFailedQuest(CQuest *quest) // returns the reason for fai

for (size_t i = 0; i < this->QuestObjectives.size(); ++i) {
CPlayerQuestObjective *objective = this->QuestObjectives[i];
if (objective->Quest != quest) {
continue;
}
if (objective->ObjectiveType == BuildUnitsObjectiveType || objective->ObjectiveType == BuildUnitsOfClassObjectiveType) {
CUnitType *type = objective->UnitType;
if (objective->ObjectiveType == BuildUnitsOfClassObjectiveType) {
Expand Down

0 comments on commit 30056a6

Please sign in to comment.