Compile bug fixes.

This commit is contained in:
whipowill
2022-05-18 15:57:50 -05:00
parent 16ef1fc76c
commit 8aba7afca7
5 changed files with 7 additions and 7 deletions

View File

@@ -66,8 +66,8 @@ class TravelNodePath
//Constructor
TravelNodePath(float distance = 0.1f, float extraCost = 0, uint8 pathType = (uint8)TravelNodePathType::walk, uint32 pathObject = 0, bool calculated = false,
std::vector<uint8> maxLevelCreature = { 0, 0, 0 }, float swimDistance = 0)
: extraCost(extraCost), distance(distance), pathType(TravelNodePathType(pathType)), calculated(calculated), pathObject(pathObject), // distance after extra cost, pathObject after calculated - whipowill
maxLevelCreature(maxLevelCreature), swimDistance(swimDistance)
: extraCost(extraCost), distance(distance), calculated(calculated), pathType(TravelNodePathType(pathType)), // reorder args - whipowill
maxLevelCreature(maxLevelCreature), pathObject(pathObject), swimDistance(swimDistance) // reorder args - whipowill
{
if (pathType != (uint8)TravelNodePathType::walk)
complete = true;