From 1a6d35fbcc13894dda92a395eaea992efbf18e3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Wed, 23 Nov 2016 22:53:38 +0800 Subject: [PATCH] Fixed error spotted by cppcheck --- Source/GameTick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/GameTick.cpp b/Source/GameTick.cpp index 685b473..c693e1c 100644 --- a/Source/GameTick.cpp +++ b/Source/GameTick.cpp @@ -5487,7 +5487,7 @@ void doAI(unsigned i) if (Person::players[0]->animTarget != rabbitkickanim && Person::players[0]->weaponactive != -1) { if (weapons[Person::players[0]->weaponids[0]].getType() == knife) { if (Person::players[i]->isIdle() || Person::players[i]->isCrouch() || Person::players[i]->isRun() || Person::players[i]->isFlip()) { - if (abs(Random() % 2 == 0)) + if (abs(Random() % 2) == 0) Person::players[i]->setAnimation(backhandspringanim); else Person::players[i]->setAnimation(rollanim); -- 2.39.5