TaxiBuildfix.

This commit is contained in:
UltraNix
2021-12-27 18:25:31 +01:00
parent 9f82bb5616
commit 08808d90c3

View File

@@ -2419,7 +2419,9 @@ namespace LuaGlobalFunctions
} }
if (startNode >= nodeId) if (startNode >= nodeId)
return 1; return 1;
#ifndef AZEROTHCORE
sTaxiPathSetBySource[startNode][nodeId - 1] = TaxiPathBySourceAndDestination(pathId, price); sTaxiPathSetBySource[startNode][nodeId - 1] = TaxiPathBySourceAndDestination(pathId, price);
#endif
TaxiPathEntry* pathEntry = new TaxiPathEntry(); TaxiPathEntry* pathEntry = new TaxiPathEntry();
#ifdef TRINITY #ifdef TRINITY
pathEntry->FromTaxiNode = startNode; pathEntry->FromTaxiNode = startNode;
@@ -2432,6 +2434,9 @@ namespace LuaGlobalFunctions
#endif #endif
pathEntry->ID = pathId; pathEntry->ID = pathId;
sTaxiPathStore.SetEntry(pathId, pathEntry); sTaxiPathStore.SetEntry(pathId, pathEntry);
#ifdef AZEROTHCORE
sTaxiPathSetBySource[startNode][nodeId - 1] = pathEntry;
#endif
Eluna::Push(L, pathId); Eluna::Push(L, pathId);
return 1; return 1;
} }