diff options
Diffstat (limited to 'TXTParser.cpp')
-rw-r--r-- | TXTParser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/TXTParser.cpp b/TXTParser.cpp index 5d0820f..07ae62b 100644 --- a/TXTParser.cpp +++ b/TXTParser.cpp @@ -151,11 +151,12 @@ static void parse_header(MuseumDeserializer & d, istringstream & input) { static void parse_canvas(MuseumDeserializer & d, istringstream & input) { unsigned int x = 0, y = 0; char c; - while (input >> c) { + while (input.get(c)) { if (c == '\r') continue; if (c == '\n') { x = 0; y += 1; + continue; } d.set_tile({ .x = x, .y = y, .type = string(1, c), }); x += 1; |