From 657c621582c264e55a7811cca0b1eee61f62329e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 20 May 2015 13:05:47 +0200 Subject: [PATCH] if the game has no region named Muschelplateau, then ignore this code --- scripts/eressea/embassy.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/eressea/embassy.lua b/scripts/eressea/embassy.lua index e4cd4b3fc..efbe248b7 100644 --- a/scripts/eressea/embassy.lua +++ b/scripts/eressea/embassy.lua @@ -25,7 +25,10 @@ function embassy.init() end function embassy.update() --- Muschelplateau + -- Muschelplateau + if home==nil then + return + end eressea.log.debug("updating embassies in " .. tostring(home)) local u for u in home.units do