diff --git a/[editor]/editor_main/server/mapsettingssync.lua b/[editor]/editor_main/server/mapsettingssync.lua index 603ae2747..dfe08d0a8 100644 --- a/[editor]/editor_main/server/mapsettingssync.lua +++ b/[editor]/editor_main/server/mapsettingssync.lua @@ -191,7 +191,17 @@ function passDefaultMapSettings() end function passNewMapSettings() + + if type(loadedMap) ~= "string" then + return false + end + local mapResource = getResourceFromName(loadedMap) + + if not mapResource then + loadedMap = false + return false + end --General settings local settings = getSettings(mapResource)