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:
parent
e4d3cdca09
commit
76acc29d6c
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user