From da162afe0d3bd7709130c86cd5cee0e9852a80bc Mon Sep 17 00:00:00 2001 From: Allanis <allanis@saracraft.net> Date: Fri, 7 Mar 2014 21:48:52 +0000 Subject: [PATCH] [Fix] Fixed bug with cargo getting reset when trying to change ships. --- dat/planet.xml | 4 ++-- src/pilot.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dat/planet.xml b/dat/planet.xml index dbddbef..864e897 100644 --- a/dat/planet.xml +++ b/dat/planet.xml @@ -517,7 +517,7 @@ <description>Constructed by many captured and then enslaved DLF armsmen. The design is pretty sturdy but you can't help to think there must be a hidden bomb somewhere, just waiting to go off and kill the Draktharr opressors.</description> <faction>Draktharr</faction> <tech> - <main>0</main> + <main>3</main> <special>0</special> </tech> <services>11</services> @@ -643,4 +643,4 @@ <class>M</class> </general> </planet> -</Planets> \ No newline at end of file +</Planets> diff --git a/src/pilot.c b/src/pilot.c index 2fedcbb..0263b21 100644 --- a/src/pilot.c +++ b/src/pilot.c @@ -1163,7 +1163,6 @@ int pilot_cargoUsed(Pilot* pilot) { int i, q; q = 0; - pilot->cargo_free = pilot->ship->cap_cargo; for(i = 0; i < pilot->ncommodities; i++) q += pilot->commodities[i].quantity;