mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix ClearMarked
This commit is contained in:
@@ -769,7 +769,8 @@ namespace SabreTools.Library.DatFiles
|
||||
/// </summary>
|
||||
private void ClearEmpty()
|
||||
{
|
||||
foreach (string key in items.Keys)
|
||||
var keys = items.Keys.ToList();
|
||||
foreach (string key in keys)
|
||||
{
|
||||
if (items[key] == null || items[key].Count == 0)
|
||||
items.Remove(key);
|
||||
|
||||
Reference in New Issue
Block a user