forked from github/server
parent
d956c2ec4b
commit
7b86d56b9e
1 changed files with 2 additions and 2 deletions
|
@ -284,8 +284,8 @@ getshipweight(const ship * sh, int *sweight, int *scabins)
|
|||
*scabins += u->number;
|
||||
} else {
|
||||
/* weight goes into number of cabins, not cargo */
|
||||
scabins += u->number * u->race->weight;
|
||||
sweight -= u->number * u->race->weight;
|
||||
*scabins += u->number * u->race->weight;
|
||||
*sweight -= u->number * u->race->weight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue