X-Git-Url: http://git.scottworley.com/planeteer/blobdiff_plain/ada59973ea301cad7d858ce76340a66d5e58bd43..797391f853ed1af8da9f37d9367edf3e162203b7:/planeteer.go diff --git a/planeteer.go b/planeteer.go index 1de4687..6f6f7b7 100644 --- a/planeteer.go +++ b/planeteer.go @@ -354,7 +354,10 @@ func FillCellByBuying(data planet_data, dims []int, table []State, addr []int) { quantity := *hold - (addr[UnusedCargo] + addr[Cloaks] + addr[Edens]) total_price := quantity * absolute_price other[Hold] = 0 + other[UnusedCargo] = 0 UpdateCell(table, my_index, EncodeIndex(dims, other), -total_price) + other[UnusedCargo] = addr[UnusedCargo] + other[Hold] = addr[Hold] } func FillCellByMisc(data planet_data, dims []int, table []State, addr []int) {