(svn r19465) -Codechange: support for multi-tile hangars

This commit is contained in:
yexo
2010-03-19 11:17:52 +00:00
parent f2743cd5ed
commit 1579e9ded2
8 changed files with 59 additions and 24 deletions

View File

@@ -2509,7 +2509,7 @@ static void DuplicateTileTable(AirportSpec *as)
MemCpyT(table_list[i], as->table[i], num_tiles);
}
as->table = table_list;
TileIndexDiffC *depot_table = MallocT<TileIndexDiffC>(as->nof_depots);
HangarTileTable *depot_table = MallocT<HangarTileTable>(as->nof_depots);
MemCpyT(depot_table, as->depot_table, as->nof_depots);
as->depot_table = depot_table;
}