From 42e6b5729618e05e85f9a13f9ea90d9df3c12e7e Mon Sep 17 00:00:00 2001 From: Shafik Date: Mon, 30 Dec 2024 14:09:25 +0200 Subject: [PATCH] Mankind saved. --- Moose Development/Moose/Functional/Warehouse.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/Functional/Warehouse.lua b/Moose Development/Moose/Functional/Warehouse.lua index 2c0431433..49b225f06 100644 --- a/Moose Development/Moose/Functional/Warehouse.lua +++ b/Moose Development/Moose/Functional/Warehouse.lua @@ -8122,9 +8122,11 @@ function WAREHOUSE:_FindParkingForAssets(airbase, assets) -- Debug output for occupied spots. if self.Debug then local coord=problem.coord --Core.Point#COORDINATE - local text=string.format("Obstacle %s [type=%s] blocking spot=%d! Size=%.1f m and distance=%.1f m.", problem.name, problem.type, _termid, problem.size, problem.dist) - self:I(self.lid..text) - coord:MarkToAll(text) + if coord then + local text=string.format("Obstacle %s [type=%s] blocking spot=%d! Size=%.1f m and distance=%.1f m.", problem.name, problem.type, _termid, problem.size, problem.dist) + self:I(self.lid..text) + coord:MarkToAll(text) + end else self:T(self.lid..string.format("Parking spot %d is occupied or not big enough!", _termid)) end