diff --git a/zone/map.cpp b/zone/map.cpp index 088fc0c45..ccf9d0616 100644 --- a/zone/map.cpp +++ b/zone/map.cpp @@ -32,8 +32,8 @@ float Map::FindBestZ(Vertex &start, Vertex *result) const { result = &tmp; start.z += RuleI(Map, FindBestZHeightAdjust); - Vertex from = { start.x, start.y, start.z }; - Vertex to = { start.x, start.y, BEST_Z_INVALID }; + Vertex from(start.x, start.y, start.z); + Vertex to(start.x, start.y, BEST_Z_INVALID); float hit_distance; bool hit = false; diff --git a/zone/pathing.cpp b/zone/pathing.cpp index 4e5ae4cbd..06d59cf9c 100644 --- a/zone/pathing.cpp +++ b/zone/pathing.cpp @@ -1185,7 +1185,7 @@ bool PathManager::NoHazardsAccurate(Map::Vertex From, Map::Vertex To) stepy = (stepy / factor)*step_size; stepz = (stepz / factor)*step_size; - Map::Vertex TestPoint = { curx, cury, curz }; + Map::Vertex TestPoint(curx, cury, curz); float NewZ = zone->zonemap->FindBestZ(TestPoint, nullptr); if (ABS(NewZ - last_z) > 5.0f) { @@ -1204,7 +1204,7 @@ bool PathManager::NoHazardsAccurate(Map::Vertex From, Map::Vertex To) if (zone->watermap->InLiquid(TestPoint.x, TestPoint.y, NewZ)) { - Map::Vertex TestPointWater = { TestPoint.x, TestPoint.y, NewZ - 0.5f }; + Map::Vertex TestPointWater(TestPoint.x, TestPoint.y, NewZ - 0.5f); Map::Vertex TestPointWaterDest = TestPointWater; Map::Vertex hit; TestPointWaterDest.z -= 500;