From 4c670bce9add683806bbdf798ecaf1edfda2eb43 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Wed, 7 Jul 2021 09:41:22 +0200 Subject: [PATCH] Core/Movement: correctly initialize orientation values when loading script waypoints --- src/server/game/Scripting/ScriptSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/Scripting/ScriptSystem.cpp b/src/server/game/Scripting/ScriptSystem.cpp index 413cb5fc344..368a40f25ea 100644 --- a/src/server/game/Scripting/ScriptSystem.cpp +++ b/src/server/game/Scripting/ScriptSystem.cpp @@ -80,7 +80,7 @@ void SystemMgr::LoadScriptWaypoints() WaypointPath& path = _waypointStore[entry]; path.Id = entry; - path.Nodes.emplace_back(id, x, y, z, 0.f, 0.f, waitTime); + path.Nodes.emplace_back(id, x, y, z, std::nullopt, 0.f, waitTime); ++count; } while (result->NextRow());