Update MessageHandlers.cpp

This commit is contained in:
Michael Thompson
2017-07-05 20:44:36 -07:00
committed by Jason Watkins
parent 1b696b0f0d
commit dcef8c9391

View File

@@ -598,7 +598,7 @@ namespace XPC
Log::FormatLine(LOG_TRACE, "SIMU", "Message Received (Conn %i)", connection.id);
char v = msg.GetBuffer()[5];
if (v < 0 || v > 2)
if (v < 0 || (v > 2 && v <10) || v > 20) //Start here
{
Log::FormatLine(LOG_ERROR, "SIMU", "ERROR: Invalid argument: %i", v);
return;