Don't allow an objective to be failed and completed at the same time.

This commit is contained in:
Steve 2016-05-17 15:55:18 +01:00
parent 7d49b11326
commit dd407e2f1c
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ void adjustObjectiveTargetValue(char *name, int type, int amount)
o->targetValue += amount;
o->currentValue = MIN(o->currentValue, o->targetValue);
if (o->currentValue >= o->targetValue)
if (o->currentValue >= o->targetValue && o->targetValue > 0)
{
o->status = OS_COMPLETE;
addHudMessage(colors.green, _("%s - Objective Complete!"), o->description);