From 34db23936b19deb1ec5203736942312448185115 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sat, 26 Nov 2011 02:13:38 -0800 Subject: [PATCH] Fix one cargo unit short when eden jumping bug. --- planeteer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planeteer.go b/planeteer.go index d78f779..6c77fc0 100644 --- a/planeteer.go +++ b/planeteer.go @@ -348,7 +348,7 @@ func CellValue(data planet_data, dims []int, table []State, addr []int) int32 { } /* Travel here via Eden Warp Unit */ - if addr[Edens]+1 < dims[Edens] && addr[UnusedCargo] > 1 { + if addr[Edens]+1 < dims[Edens] && addr[UnusedCargo] > 0 { _, available := data.Planets[data.i2p[addr[Location]]].RelativePrices["Eden Warp Units"] if !available { other[Edens] = addr[Edens] + 1 -- 2.44.1