Fixed bug with Lua printing buffering too long sometimes in Windows.

develop
expwnent 2014-08-15 05:54:54 -04:00
parent 6105247a1e
commit 38cc604861
1 changed files with 1 additions and 1 deletions

@ -225,7 +225,7 @@ static int lua_dfhack_print(lua_State *S)
{ {
std::string str = lua_print_fmt(S); std::string str = lua_print_fmt(S);
if (color_ostream *out = Lua::GetOutput(S)) if (color_ostream *out = Lua::GetOutput(S))
*out << str; out->print("%s", str.c_str());//*out << str;
else else
Core::print("%s", str.c_str()); Core::print("%s", str.c_str());
return 0; return 0;