ship capacity bug, serious
This commit is contained in:
Enno Rehling 2009-07-29 17:39:59 +00:00
parent d956c2ec4b
commit 7b86d56b9e

View file

@ -284,8 +284,8 @@ getshipweight(const ship * sh, int *sweight, int *scabins)
*scabins += u->number; *scabins += u->number;
} else { } else {
/* weight goes into number of cabins, not cargo */ /* weight goes into number of cabins, not cargo */
scabins += u->number * u->race->weight; *scabins += u->number * u->race->weight;
sweight -= u->number * u->race->weight; *sweight -= u->number * u->race->weight;
} }
} }
} }