mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Spells: Fixed TaxiMask size check for underlying types other than uint8
(cherry picked from commit 197359301d)
This commit is contained in:
@@ -2932,7 +2932,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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user