diff --git a/library/Core.cpp b/library/Core.cpp index 0f0b18ae7..96fd3903f 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -816,8 +816,8 @@ void fInitthread(void * iodata) { IODATA * iod = ((IODATA*) iodata); Core * core = iod->core; - Console & con = core->getConsole(); - core->loadScriptFile(con, "dfhack.init", true); + color_ostream_proxy out(core->getConsole()); + core->loadScriptFile(out, "dfhack.init", true); } // A thread function... for the interactive console.