fix(Core/Handlers): Crash (#14390)

This commit is contained in:
Angelo Venturini 2022-12-28 14:32:55 -03:00 committed by GitHub
parent b874760efe
commit 0a4051c4b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -851,7 +851,7 @@ void WorldSession::HandleUpdateAccountData(WorldPacket& recv_data)
LOG_DEBUG("network", "UAD: type {}, time {}, decompressedSize {}", type, timestamp, decompressedSize);
if (type > NUM_ACCOUNT_DATA_TYPES)
if (type >= NUM_ACCOUNT_DATA_TYPES)
return;
if (decompressedSize == 0) // erase