[12211] Fix taxies

Original author: @Shauren

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
Yaki Khadafi 2012-09-10 13:35:46 +03:00 committed by Antz
parent 9690f8d80d
commit 257afbf540
8 changed files with 37 additions and 37 deletions

View file

@ -5244,8 +5244,8 @@ uint32 ObjectMgr::GetNearestTaxiNode(float x, float y, float z, uint32 mapid, Te
if (!node || node->map_id != mapid || !node->MountCreatureID[team == ALLIANCE ? 1 : 0])
continue;
uint8 field = (uint8)((i - 1) / 32);
uint32 submask = 1 << ((i - 1) % 32);
uint8 field = (uint8)((i - 1) / 8);
uint8 submask = 1 << ((i - 1) % 8);
// skip not taxi network nodes
if ((sTaxiNodesMask[field] & submask) == 0)