Fixes #1487.
@ -1922,6 +1922,10 @@ static void Lua::Core::InitCoreContext()
void DFHack::Lua::Core::Reset(color_ostream &out, const char *where)
{
// This can happen if DFHack fails to initialize.
if (!State)
return;
int top = lua_gettop(State);
if (top != 0)
@ -254,6 +254,7 @@ namespace DFHack
};
void ValidateDescriptionOS() {
if (my_descriptor)
my_descriptor->ValidateOS();