fix null Reference in VectorEquals
This commit is contained in:
@@ -8,6 +8,8 @@ namespace ReallifeGamemode.Server.Extensions
|
|||||||
{
|
{
|
||||||
public static bool VectorEquals(this List<Vector3> vector3s, List<Vector3> compareToList)
|
public static bool VectorEquals(this List<Vector3> vector3s, List<Vector3> compareToList)
|
||||||
{
|
{
|
||||||
|
if (compareToList is null || vector3s is null)
|
||||||
|
return false;
|
||||||
if (vector3s.Count != compareToList.Count)
|
if (vector3s.Count != compareToList.Count)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user