aboutsummaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-06-24 22:45:52 +0200
committerest31 <MTest31@outlook.com>2015-06-24 22:47:41 +0200
commit3d43df99f1b706c836a43329d224d4b5b9ba5191 (patch)
treefae23d4c0887a82c2fbef6ee157904be64e53614 /src/server.cpp
parentb13809f0c09b1b873709b4306b1bb9bbbdf838d0 (diff)
downloadminetest-3d43df99f1b706c836a43329d224d4b5b9ba5191.tar.gz
minetest-3d43df99f1b706c836a43329d224d4b5b9ba5191.tar.bz2
minetest-3d43df99f1b706c836a43329d224d4b5b9ba5191.zip
Return to ignore
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 52bc9867a..0e3d94fae 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -1206,6 +1206,7 @@ void Server::ProcessData(NetworkPacket *pkt)
if (command >= TOSERVER_NUM_MSG_TYPES) {
infostream << "Server: Ignoring unknown command "
<< command << std::endl;
+ return;
}
if (toServerCommandTable[command].state == TOSERVER_STATE_NOT_CONNECTED) {