Core/Movement: Allow waypoints to use 0 as valid facing value

Port From (https://github.com/TrinityCore/TrinityCore/commit/8501fb572a38b7d278c6e37d7b32164c63771550)
This commit is contained in:
hondacrx
2022-06-15 18:12:42 -04:00
parent 0b1ce0fa05
commit ed85b3ae55
4 changed files with 15 additions and 9 deletions
@@ -352,7 +352,9 @@ namespace Game.AI
float x = result.Read<float>(2);
float y = result.Read<float>(3);
float z = result.Read<float>(4);
float o = result.Read<float>(5);
float? o = null;
if (!result.IsNull(5))
o = result.Read<float>(5);
uint delay = result.Read<uint>(6);
if (lastEntry != entry)