From 51d6454f04154643c2877ac8311914d8eae4015b Mon Sep 17 00:00:00 2001 From: Patman64 Date: Mon, 8 Jun 2015 00:10:10 -0400 Subject: [PATCH] Fix cMaNGOS build --- GlobalMethods.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GlobalMethods.h b/GlobalMethods.h index 4fa2944..22a12a9 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -2144,6 +2144,7 @@ namespace LuaGlobalFunctions TaxiNodesEntry* nodeEntry = new TaxiNodesEntry(); #ifdef TRINITY entry.PathID = pathId; + entry.NodeIndex = nodeId; nodeEntry->ID = index; nodeEntry->map_id = entry.MapID; nodeEntry->x = entry.LocX; @@ -2151,6 +2152,7 @@ namespace LuaGlobalFunctions nodeEntry->z = entry.LocZ; #else entry.path = pathId; + entry.index = nodeId; nodeEntry->ID = index; nodeEntry->map_id = entry.mapid; nodeEntry->x = entry.x; @@ -2159,8 +2161,7 @@ namespace LuaGlobalFunctions #endif nodeEntry->MountCreatureID[0] = mountH; nodeEntry->MountCreatureID[1] = mountA; - sTaxiNodesStore.SetEntry(nodeId, nodeEntry); - entry.NodeIndex = nodeId++; + sTaxiNodesStore.SetEntry(nodeId++, nodeEntry); sTaxiPathNodesByPath[pathId].set(index++, new TaxiPathNodeEntry(entry)); } if (startNode >= nodeId)