1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

One more fix for 0.83c build.

This commit is contained in:
Michał W. Urbańczyk
2011-02-27 21:05:53 +00:00
parent 03fdd22b1a
commit 23d0221611

View File

@@ -1067,7 +1067,9 @@ std::vector<int> CBattleCallback::battleGetDistances(const CStack * stack, THex
hex = stack->position; hex = stack->position;
std::vector<int> ret; std::vector<int> ret;
bool ac[BFIELD_SIZE]; bool ac[BFIELD_SIZE] = {0};
std::set<THex> occupyable;
gs->curB->getAccessibilityMap(ac, stack->doubleWide(), stack->attackerOwned, false, occupyable, stack->hasBonusOfType(Bonus::FLYING), stack);
THex pr[BFIELD_SIZE]; THex pr[BFIELD_SIZE];
int dist[BFIELD_SIZE]; int dist[BFIELD_SIZE];
gs->curB->makeBFS(stack->position, ac, pr, dist, stack->doubleWide(), stack->attackerOwned, stack->hasBonusOfType(Bonus::FLYING), false); gs->curB->makeBFS(stack->position, ac, pr, dist, stack->doubleWide(), stack->attackerOwned, stack->hasBonusOfType(Bonus::FLYING), false);