]> git.scottworley.com Git - planeteer/commitdiff
Fix bug: account for the empty hold
authorScott Worley <sworley@chkno.net>
Wed, 2 Nov 2011 23:43:24 +0000 (16:43 -0700)
committerScott Worley <sworley@chkno.net>
Wed, 2 Nov 2011 23:43:24 +0000 (16:43 -0700)
planeteer.go

index 9f0ede938e032a6d49e5deb8d32517d1f20512a1..ca90a02e03092a2ef6f7d7e6bed78dbf4316dfa9 100644 (file)
@@ -178,7 +178,7 @@ func DimensionSizes(data planet_data) []int {
        dims[UnusedCargo] = eden_capacity + cloak_capacity + 1
        dims[Fuel] = *fuel + 1
        dims[Location] = len(data.Planets)
-       dims[Hold] = len(data.Commodities)
+       dims[Hold] = len(data.Commodities) + 1
        dims[NeedFighters] = bint(*drones > 0) + 1
        dims[NeedShields] = bint(*batteries > 0) + 1
        dims[Visit] = 1 << uint(len(visit()))