Browse Source

Fix string printing

Johan Mattsson 2 years ago
parent
commit
801fac8eb9
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, ())
 ConsoleFunctionWithDocs(getWinNTVersion, ConsoleVoid, 1, 1, ())
 {
 {
 	std::string ver = getWinNTVersion();
 	std::string ver = getWinNTVersion();
-	Con::printf("%s", ver);
+	Con::printf("%s", ver.c_str());
 }
 }
 
 
 /*! @} */ // end group WindowsPlatform
 /*! @} */ // end group WindowsPlatform