1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

ResourceSet: composition

This commit is contained in:
Konstantin
2023-03-31 13:31:48 +03:00
parent bbbbfe00f0
commit c1fd7309ad
2 changed files with 83 additions and 15 deletions

View File

@@ -1460,7 +1460,7 @@ void CHillFortWindow::updateGarrisons()
for(int i=0; i<slotsCount; i++)
{
costs[i].fill(0);
std::fill(costs[i].begin(), costs[i].end(), 0);
int newState = getState(SlotID(i));
if(newState != -1)
{