Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/base/cargo.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/base/cargo.cc b/src/game/base/cargo.cc
index 3014a1e..626a1b3 100644
--- a/src/game/base/cargo.cc
+++ b/src/game/base/cargo.cc
@@ -164,6 +164,7 @@ void Cargo::sell(core::EntityControlable *seller, core::Entity *buyer, const int
seller_item->dec_amount(negotiated_amount);
seller->owner()->set_credits(seller->owner()->credits() + negotiated_price * negotiated_amount);
+ seller->owner()->set_dirty();
seller->inventory()->set_dirty();
if (buyer_item->amount() >= 0) {
@@ -283,7 +284,7 @@ void Cargo::buy(core::EntityControlable *buyer, core::Entity *seller, const int
}
buyer_item->inc_amount(negotiated_amount);
buyer->owner()->set_credits(buyer->owner()->credits() - negotiated_price * negotiated_amount);
-
+ buyer->owner()->set_dirty();
buyer->inventory()->set_dirty();
// send a cargo purchased message