From 08808d90c335335f3c9aa9985182dc622e228acc Mon Sep 17 00:00:00 2001 From: UltraNix Date: Mon, 27 Dec 2021 18:25:31 +0100 Subject: [PATCH] TaxiBuildfix. --- GlobalMethods.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GlobalMethods.h b/GlobalMethods.h index 043494a..10d5f64 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -2419,7 +2419,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; @@ -2432,6 +2434,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; }