From e5be0871b6fed09eed40ff17201d1c7a4a990744 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 7 Oct 2010 17:15:14 +0000 Subject: fixes crash on 'give ship' when the player hasn't joined yet (thanks to Thorn for the bug report) --- src/game/base/game.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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)) { -- cgit v1.2.3