diff options
author | sfan5 <sfan5@live.de> | 2017-01-22 20:17:13 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-01-22 20:17:13 +0100 |
commit | 43822de5c6b35646feced5ac65331313f82f78ce (patch) | |
tree | 542843ff11970c9fc9ed472f7f2c1b67001bf1f0 /src | |
parent | 39123fcce5e983e83234971571b3cfaa458970b5 (diff) | |
download | minetest-43822de5c6b35646feced5ac65331313f82f78ce.tar.gz minetest-43822de5c6b35646feced5ac65331313f82f78ce.tar.bz2 minetest-43822de5c6b35646feced5ac65331313f82f78ce.zip |
Fix potential crash in chat handling (since 2f56a00d9eef82052614e5854a07b39b087efd0b)
Diffstat (limited to 'src')
-rw-r--r-- | src/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp index 7e1ab30ac..c7d4fcba9 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2864,7 +2864,7 @@ std::wstring Server::handleChat(const std::string &name, const std::wstring &wna */ u16 peer_id_to_avoid_sending = (player ? player->peer_id : PEER_ID_INEXISTENT); - if (player->protocol_version >= 29) + if (player && player->protocol_version >= 29) peer_id_to_avoid_sending = PEER_ID_INEXISTENT; for (u16 i = 0; i < clients.size(); i++) { |