From 38cc6048611ec9542a6a38ba46b529a1b84530fc Mon Sep 17 00:00:00 2001 From: expwnent Date: Fri, 15 Aug 2014 05:54:54 -0400 Subject: [PATCH] Fixed bug with Lua printing buffering too long sometimes in Windows. --- library/LuaTools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/LuaTools.cpp b/library/LuaTools.cpp index 392659bc8..383e8b490 100644 --- a/library/LuaTools.cpp +++ b/library/LuaTools.cpp @@ -225,7 +225,7 @@ static int lua_dfhack_print(lua_State *S) { std::string str = lua_print_fmt(S); if (color_ostream *out = Lua::GetOutput(S)) - *out << str; + out->print("%s", str.c_str());//*out << str; else Core::print("%s", str.c_str()); return 0;