aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-08-17 20:02:43 +0200
committerShauren <shauren.trinity@gmail.com>2021-08-17 20:02:43 +0200
commit065794ed66e025c7ac57c708bb25ca4f2c6e62e9 (patch)
tree26ed3964762e1f813643544ac96954f4af22a84e
parent70613bd92863e6f99c189a507f8bd714dcacbdda (diff)
Core/PacketIO: Do not send hotfix Status::Valid when we don't have a hotfix blob for current locale
-rw-r--r--src/server/game/Handlers/HotfixHandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Handlers/HotfixHandler.cpp b/src/server/game/Handlers/HotfixHandler.cpp
index 82d32e87b05..828c06dac18 100644
--- a/src/server/game/Handlers/HotfixHandler.cpp
+++ b/src/server/game/Handlers/HotfixHandler.cpp
@@ -103,6 +103,9 @@ void WorldSession::HandleHotfixRequest(WorldPackets::Hotfix::HotfixRequest& hotf
hotfixData.Size = blobData->size();
hotfixQueryResponse.HotfixContent.append(blobData->data(), blobData->size());
}
+ else
+ // Do not send Status::Valid when we don't have a hotfix blob for current locale
+ hotfixData.Record.HotfixStatus = storage ? DB2Manager::HotfixRecord::Status::RecordRemoved : DB2Manager::HotfixRecord::Status::Invalid;
}
}
}