Fixes a codacy warning

This commit is contained in:
Linus Probert 2018-10-19 08:35:35 +02:00
parent bcdc9c1aa7
commit d2fe3fce4c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}