From: Côme Chilliet Date: Wed, 23 Nov 2016 14:53:38 +0000 (+0800) Subject: Fixed error spotted by cppcheck X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=1a6d35fbcc13894dda92a395eaea992efbf18e3f;p=lugaru.git Fixed error spotted by cppcheck --- 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);