Fix yet another boat visual size crash

This commit is contained in:
kay27 2022-02-04 23:54:04 +04:00
parent ad188e8474
commit 779ab00635
1 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,11 @@ local function get_visual_size(obj)
return boat_visual_size
end
end
return obj:get_properties().visual_size
local obj_properties = obj:get_properties()
if not obj_properties then
return boat_visual_size
end
return obj_properties.visual_size
end
local function set_attach(boat)