if the game has no region named Muschelplateau, then ignore this code

This commit is contained in:
Enno Rehling 2015-05-20 13:05:47 +02:00
parent 7cc1cc9eda
commit 657c621582
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,10 @@ function embassy.init()
end end
function embassy.update() function embassy.update()
-- Muschelplateau -- Muschelplateau
if home==nil then
return
end
eressea.log.debug("updating embassies in " .. tostring(home)) eressea.log.debug("updating embassies in " .. tostring(home))
local u local u
for u in home.units do for u in home.units do