From d2fe3fce4cfa42f60796694f48f4f1f1f2c5808f Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Fri, 19 Oct 2018 08:35:35 +0200 Subject: [PATCH] Fixes a codacy warning --- src/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index 39ccdce..dcc08c1 100644 --- a/src/player.c +++ b/src/player.c @@ -107,7 +107,7 @@ action_spent(Player *p) } if (p->phase_count > 0) { p->phase_count--; - if (p->phase_count <= 0) { + if (!p->phase_count) { mixer_play_effect(FADE_IN); } }