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

This commit is contained in:
Shauren
2024-07-24 00:22:56 +02:00
parent 6d6d8b3a94
commit 197359301d

View File

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