Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-10-07 17:15:14 +0000
committerStijn Buys <ingar@osirion.org>2010-10-07 17:15:14 +0000
commite5be0871b6fed09eed40ff17201d1c7a4a990744 (patch)
tree08c15d8a96fa26456b01eeedde358c615ba2a2e0 /src/game
parentf8b489b888c6c811868fe2f011b72656bbeefa96 (diff)
fixes crash on 'give ship' when the player hasn't joined yet
(thanks to Thorn for the bug report)
Diffstat (limited to 'src/game')
-rw-r--r--src/game/base/game.cc1
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)) {