mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Add safety check on merging
This commit is contained in:
@@ -2917,6 +2917,12 @@ namespace SabreTools.Library.DatFiles
|
|||||||
List<string> games = Keys;
|
List<string> games = Keys;
|
||||||
foreach (string game in games)
|
foreach (string game in games)
|
||||||
{
|
{
|
||||||
|
// If the game has no items in it, we want to continue
|
||||||
|
if (this[game].Count == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Determine if the game has a parent or not
|
// Determine if the game has a parent or not
|
||||||
string parent = null;
|
string parent = null;
|
||||||
if (!String.IsNullOrWhiteSpace(this[game][0].CloneOf))
|
if (!String.IsNullOrWhiteSpace(this[game][0].CloneOf))
|
||||||
|
|||||||
Reference in New Issue
Block a user