From c886e87991a8b5426887d11760d07a36c5d7a953 Mon Sep 17 00:00:00 2001 From: Giacomo Pozzoni Date: Wed, 25 Sep 2019 11:44:08 +0200 Subject: Core/Misc: Fix static analysis issue Fix static analysis issue (cherry picked from commit ed087546635331e4cff4e97772a9f9978f4b1833) --- src/server/game/Handlers/MiscHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Handlers/MiscHandler.cpp b/src/server/game/Handlers/MiscHandler.cpp index 0c7f5582ba1..2a5a8432a4f 100644 --- a/src/server/game/Handlers/MiscHandler.cpp +++ b/src/server/game/Handlers/MiscHandler.cpp @@ -656,7 +656,7 @@ void WorldSession::HandleUpdateAccountData(WorldPackets::ClientConfig::UserClien TC_LOG_DEBUG("network", "WORLD: Received CMSG_UPDATE_ACCOUNT_DATA: type %u, time " SI64FMTD ", decompressedSize %u", packet.DataType, packet.Time.AsUnderlyingType(), packet.Size); - if (packet.DataType > NUM_ACCOUNT_DATA_TYPES) + if (packet.DataType >= NUM_ACCOUNT_DATA_TYPES) return; if (packet.Size == 0) // erase -- cgit v1.2.3