From 4747515872775553de35cc3267e1ccd5e0076ca4 Mon Sep 17 00:00:00 2001 From: Ovah Date: Sat, 16 Apr 2022 18:21:04 +0200 Subject: Core/Movement: Allow waypoints to use 0 as valid facing value (#26655) --- src/server/game/Scripting/ScriptSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/game/Scripting/ScriptSystem.cpp') diff --git a/src/server/game/Scripting/ScriptSystem.cpp b/src/server/game/Scripting/ScriptSystem.cpp index d2e4b700311..18806c839d9 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, waitTime); + path.nodes.emplace_back(id, x, y, z, std::nullopt, waitTime); ++count; } while (result->NextRow()); -- cgit v1.2.3