fix(Core): Crashfix. (#14536)
This commit is contained in:
@@ -191,7 +191,10 @@ namespace Movement
|
|||||||
|
|
||||||
uint32 nodes = move_spline.getPath().size();
|
uint32 nodes = move_spline.getPath().size();
|
||||||
data << nodes;
|
data << nodes;
|
||||||
|
if (nodes)
|
||||||
|
{
|
||||||
data.append<Vector3>(&move_spline.getPath()[0], nodes);
|
data.append<Vector3>(&move_spline.getPath()[0], nodes);
|
||||||
|
}
|
||||||
data << uint8(move_spline.spline.mode()); // added in 3.1
|
data << uint8(move_spline.spline.mode()); // added in 3.1
|
||||||
data << (move_spline.isCyclic() ? Vector3::zero() : move_spline.FinalDestination());
|
data << (move_spline.isCyclic() ? Vector3::zero() : move_spline.FinalDestination());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user