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
master
madmaxoft@gmail.com 2012-11-15 13:36:14 +00:00
parent e41b15565c
commit 28c345a841
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}