From 6c577fbe26cdbe0fdc2136eb66472359f5812271 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Thu, 13 Apr 2023 00:27:20 -0700 Subject: [PATCH] don't initialize Core from the main thread that's too early --- library/Hooks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Hooks.cpp b/library/Hooks.cpp index b4a865c18..13f8bd908 100644 --- a/library/Hooks.cpp +++ b/library/Hooks.cpp @@ -3,7 +3,7 @@ // called before main event loop starts DFhackCExport void dfhooks_init() { - DFHack::Core::getInstance().Init(); + // TODO: initialize things we need to do while still in the main thread } // called after main event loops exits