Fixed two warnings in SyncDB ~cleanup
This commit is contained in:
parent
1f49f6a6f0
commit
78dfe42106
@ -45,11 +45,11 @@ public class SyncDB : MonoBehaviour {
|
|||||||
uint ID;
|
uint ID;
|
||||||
try {
|
try {
|
||||||
ID = IDCounter++;
|
ID = IDCounter++;
|
||||||
} catch (OverflowException Ex) {
|
} catch (OverflowException) {
|
||||||
ID = 0;
|
ID = 0;
|
||||||
IDCounter = 1;
|
IDCounter = 1;
|
||||||
}
|
}
|
||||||
while (Database.ContainsKey(ID) && Database.Keys.Count < uint.MaxValue && ID < uint.MaxValue) {
|
while (Database.ContainsKey(ID) && ID < uint.MaxValue) {
|
||||||
ID++;
|
ID++;
|
||||||
if (ID < uint.MaxValue - 1) IDCounter = ID + 1;
|
if (ID < uint.MaxValue - 1) IDCounter = ID + 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user