diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/base/game.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc index 729e4f8..1d4536a 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -748,8 +748,10 @@ bool Game::load_menus(core::Entity *entity, const std::string &menufilename) if (model) { button = new ButtonDescription(); button->set_text("buy " + model->name()); - button->set_command("buy ship " + model->label(), ButtonDescription::CommandMenu); - button->set_modelname(model->modelname()); + std::ostringstream str(""); + str << "buy " << model->id(); + button->set_command(str.str() , ButtonDescription::CommandMenu); + button->set_info(model); button->set_alignment(ButtonDescription::Left); menu_dealer->add_button(button); } |