Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.

Commit 471c88e

Browse files
committed
🐛 Fix RLUnlocks.dat loading
1 parent 04c57fb commit 471c88e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

RogueLibsCore/Patches/Patches_Unlocks.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ public static BackupUnlocks LoadBackupUnlocks()
7373
if (File.Exists(path))
7474
{
7575
using (XmlReader reader = XmlReader.Create(path))
76+
{
77+
while (reader.NodeType is not XmlNodeType.Element)
78+
reader.Read();
7679
backup.ReadXml(reader);
80+
}
7781
}
7882
unlocksBackup = backup;
7983
}

0 commit comments

Comments
 (0)