From 5558c3dd631cb37cfa6b02c98c8c238cea719b0c Mon Sep 17 00:00:00 2001 From: Christophe Le Roy Date: Sat, 8 Oct 2016 19:47:57 +0200 Subject: [PATCH] fix parseColorsStream Fixes: 173dd75b3116 ("Simplify color parsing code") --- TileGenerator.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/TileGenerator.cpp b/TileGenerator.cpp index cb33d71..e32ab17 100644 --- a/TileGenerator.cpp +++ b/TileGenerator.cpp @@ -264,6 +264,7 @@ void TileGenerator::parseColorsStream(std::istream &in) char line[128], *p; while (in.good()) { in.getline(line, 128); + p = line; while(*p++ != '\0') { if(*p != '#') continue;