diff --git a/Assets/Scripts/SyncDB.cs b/Assets/Scripts/SyncDB.cs index 8a9f558..8c76716 100644 --- a/Assets/Scripts/SyncDB.cs +++ b/Assets/Scripts/SyncDB.cs @@ -45,11 +45,11 @@ public class SyncDB : MonoBehaviour { uint ID; try { ID = IDCounter++; - } catch (OverflowException Ex) { + } catch (OverflowException) { ID = 0; IDCounter = 1; } - while (Database.ContainsKey(ID) && Database.Keys.Count < uint.MaxValue && ID < uint.MaxValue) { + while (Database.ContainsKey(ID) && ID < uint.MaxValue) { ID++; if (ID < uint.MaxValue - 1) IDCounter = ID + 1; }