summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-29 21:33:27 +0000
committerrubidium <rubidium@openttd.org>2008-12-29 21:33:27 +0000
commit1ce965ed5f5b55332f77c81a386d7f647ece8a26 (patch)
tree5b0ea66c78d0814b56d528761370933406aa676a /src
parent9f4132c7397f8b9a824455f3ef6d36496f796b91 (diff)
downloadopenttd-1ce965ed5f5b55332f77c81a386d7f647ece8a26.tar.xz
(svn r14770) -Fix: gracefully handle an invalid packet instead of asserting.
Diffstat (limited to 'src')
-rw-r--r--src/network/network_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index 401e12901..145d61dd6 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -735,7 +735,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CHAT)
ci = NetworkFindClientInfoFromClientID(_network_own_client_id);
} break;
- default: NOT_REACHED(); break;
+ default: return NETWORK_RECV_STATUS_MALFORMED_PACKET;
}
} else {
/* Display message from somebody else */