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:
@@ -1067,7 +1067,9 @@ std::vector<int> CBattleCallback::battleGetDistances(const CStack * stack, THex
|
||||
hex = stack->position;
|
||||
|
||||
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];
|
||||
int dist[BFIELD_SIZE];
|
||||
gs->curB->makeBFS(stack->position, ac, pr, dist, stack->doubleWide(), stack->attackerOwned, stack->hasBonusOfType(Bonus::FLYING), false);
|
||||
|
Reference in New Issue
Block a user