Rebuild total cargo acceptance on load even for empty acceptance area

This commit is contained in:
Jonathan G Rennison
2019-08-01 23:05:31 +01:00
parent f5badfefd1
commit bc0de9b6ef

View File

@@ -336,10 +336,9 @@ static void Load_TOWN()
uint arr_len = t->cargo_accepted.area.w / AcceptanceMatrix::GRID * t->cargo_accepted.area.h / AcceptanceMatrix::GRID;
t->cargo_accepted.data = MallocT<CargoTypes>(arr_len);
SlArray(t->cargo_accepted.data, arr_len, SLE_UINT64);
/* Rebuild total cargo acceptance. */
UpdateTownCargoTotal(t);
}
/* Rebuild total cargo acceptance. */
UpdateTownCargoTotal(t);
}
}
}