fix a compile error on gcc caused by a recent commit

This commit is contained in:
Tomasz Śniatowski 2009-02-21 23:39:05 +01:00
parent 3d3e267242
commit 4a66260942

View File

@ -119,7 +119,8 @@ void terrain_builder::tilemap::reload(int x, int y)
{
x_ = x;
y_ = y;
tiles_.swap(std::vector<tile>((x + 4) * (y + 4)));
std::vector<terrain_builder::tile> new_tiles((x + 4) * (y + 4));
tiles_.swap(new_tiles);
}
bool terrain_builder::tilemap::on_map(const map_location &loc) const