1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Correctly display visiting army in kingdom overview, fixes #1761

Do not modify CIntObject::pos, according to its doc
This commit is contained in:
Piotr Wójcik 2017-05-22 22:34:05 +02:00
parent e4d3cdca09
commit 76acc29d6c

View File

@ -426,8 +426,7 @@ void CGarrisonInt::createSlots()
garrisonSlots[j] = new CGarrisonSlot(this, i*garOffset.x + (j*distance), i*garOffset.y, SlotID(j), static_cast<CGarrisonSlot::EGarrisonType>(i), nullptr);
if (twoRows && j>=4)
{
garrisonSlots[j]->pos.x -= 326;
garrisonSlots[j]->pos.y += 37;
garrisonSlots[j]->moveBy(Point(-126, 37));
}
}
std::copy(garrisonSlots.begin(), garrisonSlots.end(), std::back_inserter(availableSlots));