From 7b86d56b9e5b2d44016fd6947510416772187854 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 29 Jul 2009 17:39:59 +0000 Subject: [PATCH] http://bugs.eressea.de/view.php?id=1563 ship capacity bug, serious --- src/common/kernel/ship.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/kernel/ship.c b/src/common/kernel/ship.c index d18ec118f..e48946563 100644 --- a/src/common/kernel/ship.c +++ b/src/common/kernel/ship.c @@ -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; } } }