aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-07-24 00:22:56 +0200
committerShauren <shauren.trinity@gmail.com>2024-07-24 00:22:56 +0200
commit197359301d57e997b4ccfd52b51a2a18d77e9e82 (patch)
tree3c1bd0c44f4b8b7c7f5f0770b8d2b8f28c0f408f
parent6d6d8b3a946dcffd90dee180bffe8619592ab241 (diff)
Core/Spells: Fixed TaxiMask size check for underlying types other than uint8
-rw-r--r--src/server/game/DataStores/DB2Stores.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/DataStores/DB2Stores.cpp b/src/server/game/DataStores/DB2Stores.cpp
index 65907211126..3bbe1ef60c4 100644
--- a/src/server/game/DataStores/DB2Stores.cpp
+++ b/src/server/game/DataStores/DB2Stores.cpp
@@ -3453,7 +3453,7 @@ TaxiMask::TaxiMask()
{
if (sTaxiNodesStore.GetNumRows())
{
- _data.resize(((sTaxiNodesStore.GetNumRows() - 1) / (sizeof(value_type) * 64) + 1) * 8, 0);
+ _data.resize((sTaxiNodesStore.GetNumRows() + (8 * sizeof(uint64) - 1)) / (8 * sizeof(uint64)) * (sizeof(uint64) / sizeof(value_type)), 0);
ASSERT((_data.size() % 8) == 0, "TaxiMask size must be aligned to a multiple of uint64");
}
}