Skip to content

Commit 4c8cc1c

Browse files
committed
explicitly check for ship targets
1 parent 1cda114 commit 4c8cc1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SaveLoadX/data/tables/saveload2-sct.tbm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function SaveState:GetShipData(shipname)
194194
if (order:getType() == ORDER_WAYPOINTS) or (order:getType() == ORDER_WAYPOINTS_ONCE) then
195195
--tt.Target = order.Target:getList().Name
196196
else
197-
if order.Target and order.Target:isValid() then
197+
if order.Target and order.Target:isValid() and order.Target:getBreedName() == "Ship" then
198198
tt.Target = order.Target.Name
199199
ba.print(" Target: " .. tostring(tt.Target) .. "\n")
200200
end

0 commit comments

Comments
 (0)