From 520e1df1a5dc7672547d0028666a420a2a83f173 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Wed, 26 Jul 2017 20:18:35 +0300 Subject: [PATCH] Fixed exceptions in NetEntityEvent.IsDuplicate if the data array contains null --- .../Source/Networking/NetEntityEvent/NetEntityEvent.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Networking/NetEntityEvent/NetEntityEvent.cs b/Barotrauma/BarotraumaShared/Source/Networking/NetEntityEvent/NetEntityEvent.cs index 7746e0cac..4499849e5 100644 --- a/Barotrauma/BarotraumaShared/Source/Networking/NetEntityEvent/NetEntityEvent.cs +++ b/Barotrauma/BarotraumaShared/Source/Networking/NetEntityEvent/NetEntityEvent.cs @@ -42,8 +42,13 @@ namespace Barotrauma.Networking { if (Data.Length == other.Data.Length) { - for (int i = 0; i