Eluna fix TC taxi path node container

This commit is contained in:
Rochet2
2015-09-15 01:20:39 +03:00
parent 3cfa7ac575
commit 34439b2ff3

View File

@@ -2205,6 +2205,10 @@ namespace LuaGlobalFunctions
nodeEntry->x = entry.LocX;
nodeEntry->y = entry.LocY;
nodeEntry->z = entry.LocZ;
nodeEntry->MountCreatureID[0] = mountH;
nodeEntry->MountCreatureID[1] = mountA;
sTaxiNodesStore.SetEntry(nodeId++, nodeEntry);
sTaxiPathNodesByPath[pathId][index++] = new TaxiPathNodeEntry(entry);
#else
entry.path = pathId;
entry.index = nodeId;
@@ -2213,11 +2217,11 @@ namespace LuaGlobalFunctions
nodeEntry->x = entry.x;
nodeEntry->y = entry.y;
nodeEntry->z = entry.z;
#endif
nodeEntry->MountCreatureID[0] = mountH;
nodeEntry->MountCreatureID[1] = mountA;
sTaxiNodesStore.SetEntry(nodeId++, nodeEntry);
sTaxiPathNodesByPath[pathId].set(index++, new TaxiPathNodeEntry(entry));
#endif
}
if (startNode >= nodeId)
return 1;