瀏覽代碼

Fix string printing

Johan Mattsson 2 年之前
父節點
當前提交
801fac8eb9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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