--- a/io.cpp Fri Mar 15 22:27:38 2013 +0200 +++ b/io.cpp Sat Mar 16 00:05:39 2013 +0200 @@ -88,6 +88,9 @@ char c = zLine[0]; vector<str> tokens = zLine / " "; + if (~tokens[0] != 1) + return new LDGibberish (zLine, "Illogical line code"); + switch (c - '0') { case 0: { @@ -162,9 +165,7 @@ default: { // Strange line we couldn't parse - LDGibberish* obj = new LDGibberish; - obj->zContent = zLine; - return obj; + return new LDGibberish (zLine, "Unknown line code number"); } } } \ No newline at end of file