diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-07 17:15:14 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-07 17:15:14 +0000 |
commit | e5be0871b6fed09eed40ff17201d1c7a4a990744 (patch) | |
tree | 08c15d8a96fa26456b01eeedde358c615ba2a2e0 /src | |
parent | f8b489b888c6c811868fe2f011b72656bbeefa96 (diff) |
fixes crash on 'give ship' when the player hasn't joined yet
(thanks to Thorn for the bug report)
Diffstat (limited to 'src')
-rw-r--r-- | src/game/base/game.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc index 1202fe6..7fc3eb5 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -202,6 +202,7 @@ void Game::func_give(core::Player *player, const std::string &args) if (!player->control()) { player->send("^WNeed a ship to swap with!"); + return; } if (!(is >> labelstr)) { |