Add missing cast in Save_TNNC()

This commit is contained in:
Jonathan G Rennison
2023-03-19 22:23:50 +00:00
parent 2716217775
commit b7cb4099a6

View File

@@ -384,7 +384,7 @@ void Save_TNNC()
SlSetLength(4 + (Town::GetNumItems() * (1 + lengthof(TownCache::squared_town_zone_radius)) * 4)); SlSetLength(4 + (Town::GetNumItems() * (1 + lengthof(TownCache::squared_town_zone_radius)) * 4));
SlWriteUint32(Town::GetNumItems()); SlWriteUint32((uint32)Town::GetNumItems());
for (const Town *t : Town::Iterate()) { for (const Town *t : Town::Iterate()) {
SlWriteUint32(t->index); SlWriteUint32(t->index);