From bbbd41ccf4e7501e93689afecab442cb7e60a5de Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 12 Jul 2011 13:34:57 +0000 Subject: Interpret the Item::Tradeable flag when loading savegames. --- src/game/base/game.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/game') 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(); -- cgit v1.2.3