From 28c345a8415655d801d2d052c7daa329cd760741 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 15 Nov 2012 13:36:14 +0000 Subject: Added an assert for unknown protocol, so that the function isn't missed when upgrading to a new protocol. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1043 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol/ProtocolRecognizer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Protocol/ProtocolRecognizer.cpp b/source/Protocol/ProtocolRecognizer.cpp index c833853fa..19c40c5a3 100644 --- a/source/Protocol/ProtocolRecognizer.cpp +++ b/source/Protocol/ProtocolRecognizer.cpp @@ -48,6 +48,7 @@ AString cProtocolRecognizer::GetVersionTextFromInt(int a_ProtocolVersion) case PROTO_VERSION_1_4_2: return "1.4.2"; case PROTO_VERSION_1_4_4: return "1.4.4"; } + ASSERT(!"Unknown protocol version"); return Printf("Unknown protocol (%d)", a_ProtocolVersion); } -- cgit v1.2.3