diff options
author | Stijn Buys <ingar@osirion.org> | 2009-07-07 13:41:07 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-07-07 13:41:07 +0000 |
commit | 1f71cc5e127f6163e9163afd42453fe145defbeb (patch) | |
tree | 03384a37490395d5d7a67b034db2e8f569a54d0c /src/core/gameinterface.cc | |
parent | fb1d166768e516a8493c16064640c98b1efa6707 (diff) |
virtual functions cleanup
Diffstat (limited to 'src/core/gameinterface.cc')
-rw-r--r-- | src/core/gameinterface.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/gameinterface.cc b/src/core/gameinterface.cc index 1ed0a67..4b66489 100644 --- a/src/core/gameinterface.cc +++ b/src/core/gameinterface.cc @@ -114,6 +114,7 @@ void GameInterface::clear() // remove all zones for (Zone::Registry::iterator it = Zone::registry().begin(); it != Zone::registry().end(); it++) { Zone *zone = (*it).second; + con_debug " removing zone " << zone->label() << std::endl; delete zone; } Zone::registry().clear(); @@ -174,7 +175,7 @@ Player *GameInterface::find_player(const std::string &search) } } - if (search.size() <3) + if (search.size() < 3) return 0; for (std::list<Player *>:: iterator it = game_players.begin(); it != game_players.end(); it++) { |