Core/Misc: Fix static analysis issue

Fix static analysis issue
This commit is contained in:
Giacomo Pozzoni
2019-09-25 11:44:08 +02:00
committed by GitHub
parent c8dc9fdc41
commit ed08754663

View File

@@ -762,7 +762,7 @@ void WorldSession::HandleUpdateAccountData(WorldPacket& recvData)
TC_LOG_DEBUG("network", "UAD: type %u, time %u, decompressedSize %u", type, timestamp, decompressedSize);
if (type > NUM_ACCOUNT_DATA_TYPES)
if (type >= NUM_ACCOUNT_DATA_TYPES)
return;
if (decompressedSize == 0) // erase