Core/Spells: Fixed TaxiMask size check for underlying types other than uint8

(cherry picked from commit 197359301d)
This commit is contained in:
Shauren
2024-07-24 00:22:56 +02:00
committed by Ovahlord
parent e45c9ab239
commit 2d9b31f48a

View File

@@ -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");
}
}