diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-12 01:59:09 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-12 01:59:09 +0300 |
commit | 08139f32f99ad50fe6d5522feb21448a1a1aaae7 (patch) | |
tree | 1ca2c91f33403643bc7828f78a13c548e606c7a8 /src | |
parent | 249c0dc68a107878b7aaca0c8d2dcc3e08862430 (diff) | |
download | minetest-08139f32f99ad50fe6d5522feb21448a1a1aaae7.tar.gz minetest-08139f32f99ad50fe6d5522feb21448a1a1aaae7.tar.bz2 minetest-08139f32f99ad50fe6d5522feb21448a1a1aaae7.zip |
fixing
Diffstat (limited to 'src')
-rw-r--r-- | src/server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index b08d568cc..6a0c13040 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1224,6 +1224,8 @@ void Server::AsyncRunStep() //u16 peer_id = i.getNode()->getKey(); RemoteClient *client = i.getNode()->getValue(); Player *player = m_env.getPlayer(client->peer_id); + if(player==NULL) + continue; std::cout<<player->getName()<<"\t"; client->PrintInfo(std::cout); } |