mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 07:06:23 +00:00
fix(Core): Crashfix. (#14536)
This commit is contained in:
@@ -191,7 +191,10 @@ namespace Movement
|
||||
|
||||
uint32 nodes = move_spline.getPath().size();
|
||||
data << nodes;
|
||||
data.append<Vector3>(&move_spline.getPath()[0], nodes);
|
||||
if (nodes)
|
||||
{
|
||||
data.append<Vector3>(&move_spline.getPath()[0], nodes);
|
||||
}
|
||||
data << uint8(move_spline.spline.mode()); // added in 3.1
|
||||
data << (move_spline.isCyclic() ? Vector3::zero() : move_spline.FinalDestination());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user