From becd5454f5b1402b6b93a875141612a4dd872ebd Mon Sep 17 00:00:00 2001 From: Timmy Weerwag Date: Mon, 13 Apr 2015 19:19:18 +0200 Subject: [PATCH] Fix most confusing layout award Wrong parentheses --- src/management/award.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/management/award.c b/src/management/award.c index 98afa42785..90f4d8e719 100644 --- a/src/management/award.c +++ b/src/management/award.c @@ -519,7 +519,7 @@ static int award_is_deserved_most_confusing_layout(int awardType, int activeAwar continue; peepsCounted++; - if ((peep->thoughts[0].var_2 <= 5 && peep->thoughts[0].type == PEEP_THOUGHT_TYPE_LOST) || peep->thoughts[0].type == PEEP_THOUGHT_TYPE_CANT_FIND) + if (peep->thoughts[0].var_2 <= 5 && (peep->thoughts[0].type == PEEP_THOUGHT_TYPE_LOST || peep->thoughts[0].type == PEEP_THOUGHT_TYPE_CANT_FIND)) peepsLost++; } @@ -631,4 +631,4 @@ void award_update_all() if (awards[i].time != 0) if (--awards[i].time == 0) window_invalidate_by_class(WC_PARK_INFORMATION); -} \ No newline at end of file +}