diff options
Diffstat (limited to 'src/game/base/game.cc')
-rw-r--r-- | src/game/base/game.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc index 62ceef8..2ec3c62 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -686,7 +686,7 @@ void Game::func_wingmen(core::Player *player, const std::string &args) return; } - assert(player->control()->moduletype() == ship_enttype); + assert(player->control()->moduletype() == ship_enttype); Ship * ship = static_cast<Ship *>(player->control()); std::istringstream is(args); @@ -714,6 +714,8 @@ void Game::func_wingmen(core::Player *player, const std::string &args) for (int count = 0; count < amount; ++count) { NPC *npc = NPC::add_wingman(ship); if (npc) { + npc->set_commander(player); + if (faction) { faction->apply(npc); player->send(faction->name() + " wingman standing by!"); |