From: Scott Worley Date: Sat, 26 Nov 2011 10:13:38 +0000 (-0800) Subject: Fix one cargo unit short when eden jumping bug. X-Git-Url: http://git.scottworley.com/planeteer/commitdiff_plain/34db23936b19deb1ec5203736942312448185115 Fix one cargo unit short when eden jumping bug. --- 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