diff options
author | krzys-h <krzys_h@interia.pl> | 2013-05-12 13:05:32 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-05-12 13:05:32 +0200 |
commit | 06cf93f466871eb9f6d6d93feaeaef14f58573af (patch) | |
tree | 83cca695ae028eb9e4029f088fa94e4fa1d47e23 | |
parent | cec406ea31c3ccb22ab676ce3fd52d4cd0dfcb0d (diff) | |
download | colobot-06cf93f466871eb9f6d6d93feaeaef14f58573af.tar.gz colobot-06cf93f466871eb9f6d6d93feaeaef14f58573af.tar.bz2 colobot-06cf93f466871eb9f6d6d93feaeaef14f58573af.zip |
Better print fix
-rw-r--r-- | src/object/robotmain.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index 981c1ed..2c72a27 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -4921,9 +4921,10 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject) } if (line[0] == '\n') continue; // Ignore empty lines + if (line[0] == '\0') continue; // Ignore empty lines if (read[0] != 0) continue; // Ignore when loading saved game - GetLogger()->Error("Syntax error in file '%s' (line %d): Unknown command: %s\n", filename, lineNum, line); // Don't add \n at the end of log message - it's included in line variable + GetLogger()->Error("Syntax error in file '%s' (line %d): Unknown command: %s", filename, lineNum, line); // Don't add \n at the end of log message - it's included in line variable } fclose(file); |