Browse Source

Merge pull request #50 from mjunix/patch-2

Fix string printing
Peter Robinson 2 years ago
parent
commit
945618d83a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engine/source/platformWin32/winConsole_ScriptBinding.h

+ 1 - 1
engine/source/platformWin32/winConsole_ScriptBinding.h

@@ -42,7 +42,7 @@ ConsoleFunctionWithDocs(enableWinConsole, ConsoleVoid, 2, 2, ( enable ))
 ConsoleFunctionWithDocs(getWinNTVersion, ConsoleVoid, 1, 1, ())
 {
 	std::string ver = getWinNTVersion();
-	Con::printf("%s", ver);
+	Con::printf("%s", ver.c_str());
 }
 
 /*! @} */ // end group WindowsPlatform