Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/base/game.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc
index bdca48a..5639e20 100644
--- a/src/game/base/game.cc
+++ b/src/game/base/game.cc
@@ -1889,7 +1889,11 @@ void Game::player_load(core::Player *player)
}
} else if (inifile.got_key_bool("tradeable", b)) {
if (item) {
- item->set_flag(core::Item::Tradeable);
+ if (b) {
+ item->set_flag(core::Item::Tradeable);
+ } else {
+ item->unset_flag(core::Item::Tradeable);
+ }
}
} else {
inifile.unknown_key();