Skip to content

Commit

Permalink
fix: TaxiBuildfix.
Browse files Browse the repository at this point in the history
fix: TaxiBuildfix.
  • Loading branch information
55Honey authored Mar 12, 2022
2 parents 796dff5 + 08808d9 commit 47a4534
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GlobalMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,9 @@ namespace LuaGlobalFunctions
}
if (startNode >= nodeId)
return 1;
#ifndef AZEROTHCORE
sTaxiPathSetBySource[startNode][nodeId - 1] = TaxiPathBySourceAndDestination(pathId, price);
#endif
TaxiPathEntry* pathEntry = new TaxiPathEntry();
#ifdef TRINITY
pathEntry->FromTaxiNode = startNode;
Expand All @@ -2435,6 +2437,9 @@ namespace LuaGlobalFunctions
#endif
pathEntry->ID = pathId;
sTaxiPathStore.SetEntry(pathId, pathEntry);
#ifdef AZEROTHCORE
sTaxiPathSetBySource[startNode][nodeId - 1] = pathEntry;
#endif
Eluna::Push(L, pathId);
return 1;
}
Expand Down

0 comments on commit 47a4534

Please sign in to comment.