fix introduced bug

This commit is contained in:
Miodrag Milanovic 2018-07-21 09:22:09 +02:00
parent 9f0be8cd5f
commit 20941292ad

View File

@ -481,6 +481,8 @@ void write_asc(const Context *ctx, std::ostream &out)
for (int y = 0; y < ci.height; y++) {
for (int x = 0; x < ci.width; x++) {
TileType tile = tile_at(ctx, x, y);
if (tile == TILE_NONE)
continue;
out << tagTileType(tile);
out << " " << x << " " << y << std::endl;
for (auto row : config.at(y).at(x)) {