Core/Spline: Fix crash
Port From (https://github.com/TrinityCore/TrinityCore/commit/e998a1169d9570ae1fe44683287eaf443b573089)
This commit is contained in:
@@ -318,7 +318,13 @@ namespace Game.Movement
|
|||||||
+ vertice[2] * weights.Z + vertice[3] * weights.W;
|
+ vertice[2] * weights.Z + vertice[3] * weights.W;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Length() { return lengths[index_hi];}
|
public int Length()
|
||||||
|
{
|
||||||
|
if (lengths.Length == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return lengths[index_hi];
|
||||||
|
}
|
||||||
|
|
||||||
public int Length(int first, int last) { return lengths[last] - lengths[first]; }
|
public int Length(int first, int last) { return lengths[last] - lengths[first]; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user