diff options
| author | Ovah <dreadkiller@gmx.de> | 2022-04-16 18:21:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-16 18:21:04 +0200 |
| commit | 4747515872775553de35cc3267e1ccd5e0076ca4 (patch) | |
| tree | 1e69388797223e9322f8912bc8ebe0772fdd9160 /src/server/game/AI/SmartScripts | |
| parent | c0a120669dafe0688e6b7fc1e487e3dfd6220087 (diff) | |
Core/Movement: Allow waypoints to use 0 as valid facing value (#26655)
Diffstat (limited to 'src/server/game/AI/SmartScripts')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartScriptMgr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index e7fb0dcbf63..9069c3ab756 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -77,7 +77,9 @@ void SmartWaypointMgr::LoadFromDB() float x = fields[2].GetFloat(); float y = fields[3].GetFloat(); float z = fields[4].GetFloat(); - float o = fields[5].GetFloat(); + Optional<float> o; + if (!fields[5].IsNull()) + o = fields[5].GetFloat(); uint32 delay = fields[6].GetUInt32(); if (lastEntry != entry) |
