1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

- vcmi can be compiled with clang-3.1

This commit is contained in:
Ivan Savenko
2012-05-27 19:06:35 +00:00
parent c512069177
commit 61ccabde53
5 changed files with 6 additions and 6 deletions

View File

@ -2098,7 +2098,7 @@ void CBattleInterface::getPossibleActionsForStack(const CStack * stack)
possibleActions.push_back(ATTACK); //all active stacks can attack
possibleActions.push_back(WALK_AND_ATTACK); //not all stacks can always walk, but we will check this elsewhere
if (stack->canMove() && stack->Speed()); //probably no reason to try move war machines or bound stacks
if (stack->canMove() && stack->Speed()) //probably no reason to try move war machines or bound stacks
possibleActions.push_back (MOVE_STACK); //all active stacks can attack
if (siegeH && stack->hasBonusOfType (Bonus::CATAPULT)) //TODO: check shots