]> git.scottworley.com Git - planeteer/blobdiff - planeteer.go
Fix one cargo unit short when eden jumping bug.
[planeteer] / planeteer.go
index d78f7795436bd9c095cebbe5ca92cdd7e94ce835..6c77fc075fafb214cf396ee10cbccfc65bda3e1a 100644 (file)
@@ -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