Skip to content

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
This edit is required for custom FP nodes through Lua
  • Loading branch information
Foereaper committed Jul 22, 2024
1 parent c78f75f commit 25239ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Globals/ObjectMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6846,7 +6846,7 @@ uint32 ObjectMgr::GetNearestTaxiNode(float x, float y, float z, uint32 mapid, ui
uint32 submask = 1<<((i-1)%32);

// skip not taxi network nodes
if (field >= TaxiMaskSize || (sTaxiNodesMask[field] & submask) == 0)
if (field >= sTaxiNodesMask.size() || (sTaxiNodesMask[field] & submask) == 0)
continue;

float dist2 = (node->Pos.X - x)*(node->Pos.X - x)+(node->Pos.Y - y)*(node->Pos.Y - y)+(node->Pos.Z - z)*(node->Pos.Z - z);
Expand Down

0 comments on commit 25239ba

Please sign in to comment.