summaryrefslogtreecommitdiffstats
path: root/src/object/robotmain.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-05-12 13:05:32 +0200
committerkrzys-h <krzys_h@interia.pl>2013-05-12 13:05:32 +0200
commit06cf93f466871eb9f6d6d93feaeaef14f58573af (patch)
tree83cca695ae028eb9e4029f088fa94e4fa1d47e23 /src/object/robotmain.cpp
parentcec406ea31c3ccb22ab676ce3fd52d4cd0dfcb0d (diff)
downloadcolobot-06cf93f466871eb9f6d6d93feaeaef14f58573af.tar.gz
colobot-06cf93f466871eb9f6d6d93feaeaef14f58573af.tar.bz2
colobot-06cf93f466871eb9f6d6d93feaeaef14f58573af.zip
Better print fix
Diffstat (limited to 'src/object/robotmain.cpp')
-rw-r--r--src/object/robotmain.cpp3
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);