From 1b925cd9652f9992220018fe6cbb88027a3913f7 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sun, 25 Aug 2024 19:27:44 -0700 Subject: [PATCH] require a map to be loaded to run gui/family-affairs --- gui/family-affairs.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/family-affairs.lua b/gui/family-affairs.lua index 63c2800f2..31c9a322e 100644 --- a/gui/family-affairs.lua +++ b/gui/family-affairs.lua @@ -829,6 +829,10 @@ function FamilyAffairsScreen:onDismiss() view = nil end +if not dfhack.isMapLoaded() then + qerror('requires a map to be loaded') +end + local help, initial_tab = false, 'relationships' local positionals = argparse.processArgsGetopt({...}, {