1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-05 15:05:40 +02:00

Merge pull request #234 from dreamer10/develop

Bug fix for berserk:
This commit is contained in:
ArseniyShestakov 2016-10-08 17:43:22 +03:00 committed by GitHub
commit 3cf000572a

View File

@ -1366,7 +1366,7 @@ std::pair<const CStack *, BattleHex> CBattleInfoCallback::getNearestStack(const
for(BattleHex hex : avHexes)
if(CStack::isMeleeAttackPossible(closest, st, hex))
{
DistStack hlp = {reachability.distances[st->position], hex, st};
DistStack hlp = {reachability.distances[hex], hex, st};
stackPairs.push_back(hlp);
}