Browse Source

fixed log output for strings containing '%'

Andrew Karpushin 12 years ago
parent
commit
c8d5344d79
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gameplay/src/Logger.cpp

+ 2 - 1
gameplay/src/Logger.cpp

@@ -1,3 +1,4 @@
+
 #include "Base.h"
 #include "Game.h"
 #include "ScriptController.h"
@@ -66,7 +67,7 @@ void Logger::log(Level level, const char* message, ...)
     else
     {
         // Log to the default output
-        gameplay::print(str);
+        gameplay::print("%s", str);
     }
 
     va_end(args);