diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/base/game.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc index e9ea476..db03e4e 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -1229,7 +1229,9 @@ void Game::func_mount(core::Player *player, const std::string &args) slot->set_item(0); slot->unset_flag(core::Slot::Active); slot->unset_flag(core::Slot::Mounted); - item->unset_flag(core::Item::Mounted); + item->unset_flag(core::Item::Mounted); + + ship->inventory()->set_dirty(); if (ship->owner()) { std::stringstream msgstr; msgstr << "^BUnmounted " << weapon->name(); @@ -1259,6 +1261,8 @@ void Game::func_mount(core::Player *player, const std::string &args) slot->set_flag(core::Slot::Active); slot->set_flag(core::Slot::Mounted); item->set_flag(core::Item::Mounted); + + ship->inventory()->set_dirty(); if (ship->owner()) { std::stringstream msgstr; msgstr << "^BMounted " << weapon->name(); |