Core/DataStores: Removed hardcoded cap for taxi nodes mask

Port From (https://github.com/TrinityCore/TrinityCore/commit/376dc7402a41a03b4c5bc718863c1e0eb410ebec)
This commit is contained in:
hondacrx
2022-06-01 17:19:30 -04:00
parent a99d430a9c
commit 386122e247
6 changed files with 25 additions and 20 deletions
+1 -1
View File
@@ -1924,7 +1924,7 @@ namespace Game
var factionMask = newTeamId == TeamId.Horde ? CliDB.HordeTaxiNodesMask : CliDB.AllianceTaxiNodesMask;
for (int i = 0; i < PlayerConst.TaxiMaskSize; ++i)
for (int i = 0; i < factionMask.Length; ++i)
{
// i = (315 - 1) / 8 = 39
// m = 1 << ((315 - 1) % 8) = 4