fix infinite loop while saving empty minimap

This commit is contained in:
Eduardo Bart
2012-06-22 14:26:12 -03:00
parent 0c14a8e602
commit 139f389d88
4 changed files with 12 additions and 11 deletions

View File

@@ -192,7 +192,7 @@ bool Protocol::xteaDecrypt(const InputMessagePtr& inputMessage)
uint16 decryptedSize = inputMessage->getU16() + 2;
int sizeDelta = decryptedSize - encryptedSize;
if(sizeDelta > 0 || -sizeDelta > encryptedSize) {
g_logger.traceError("invalid decrypted a network message");
g_logger.traceError("invalid decrypted network message");
return false;
}