mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Fix adding from devices
This commit is contained in:
@@ -2796,6 +2796,12 @@ namespace SabreTools.Library.DatFiles
|
||||
List<string> games = Keys;
|
||||
foreach (string game in games)
|
||||
{
|
||||
// If the game doesn't have items, we continue
|
||||
if (this[game] == null || this[game].Count == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// If the game has no devices, we continue
|
||||
if (this[game][0].Devices == null || this[game][0].Devices.Count == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user