tastudio: thanks for letting a ulong overflow backwards.
This commit is contained in:
parent
4f07c908a0
commit
6e16f0c5dc
|
@ -713,6 +713,7 @@ namespace BizHawk.Client.Common
|
||||||
BranchStates[kvp.Key] = stateList;
|
BranchStates[kvp.Key] = stateList;
|
||||||
}
|
}
|
||||||
stateList.Add(branchHash, kvp.Value);
|
stateList.Add(branchHash, kvp.Value);
|
||||||
|
Used += (ulong)stateList[branchHash].Length;
|
||||||
}
|
}
|
||||||
currentBranch = _movie.BranchCount;
|
currentBranch = _movie.BranchCount;
|
||||||
}
|
}
|
||||||
|
@ -772,9 +773,7 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
stateList.Remove(branchHash);
|
stateList.Remove(branchHash);
|
||||||
if (stateList.Count == 0)
|
if (stateList.Count == 0)
|
||||||
{
|
BranchStates.Remove(kvp.Key);
|
||||||
BranchStates[kvp.Key] = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddBranch
|
// AddBranch
|
||||||
|
@ -791,8 +790,8 @@ namespace BizHawk.Client.Common
|
||||||
BranchStates[kvp.Key] = stateList;
|
BranchStates[kvp.Key] = stateList;
|
||||||
}
|
}
|
||||||
stateList.Add(branchHash, kvp.Value);
|
stateList.Add(branchHash, kvp.Value);
|
||||||
|
Used += (ulong)stateList[branchHash].Length;
|
||||||
}
|
}
|
||||||
|
|
||||||
currentBranch = index;
|
currentBranch = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue