Add back incorrectly removed clause from f7783fb4bb that was needed for the lobby, refs #4962 / D1583.

This was SVN commit r21861.
This commit is contained in:
elexis 2018-08-06 09:45:33 +00:00
parent f7783fb4bb
commit f11b59f117

View File

@ -62,7 +62,7 @@ function getMapDescriptionAndPreview(mapType, mapName, gameAttributes = undefine
else if (Engine.FileExists(mapName + ".xml"))
mapData = Engine.LoadMapSettings(mapName + ".xml");
let biomePreview = getBiomePreview(mapName, gameAttributes.settings.Biome || "");
let biomePreview = getBiomePreview(mapName, gameAttributes && gameAttributes.settings.Biome || "");
return deepfreeze({
"description": mapData && mapData.settings && mapData.settings.Description ? translate(mapData.settings.Description) : translate("Sorry, no description available."),