From 56d0d676f6139fe083e7f466ed6a9ec613656dcc Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 2 Feb 2021 15:15:07 -0800 Subject: [PATCH] Don't run extras if there are no extras --- SabreTools.Filtering/ExtraIni.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SabreTools.Filtering/ExtraIni.cs b/SabreTools.Filtering/ExtraIni.cs index cbeae919..fc586967 100644 --- a/SabreTools.Filtering/ExtraIni.cs +++ b/SabreTools.Filtering/ExtraIni.cs @@ -88,6 +88,10 @@ namespace SabreTools.Filtering /// True if the extras were applied, false on error public bool ApplyExtras(DatFile datFile, bool throwOnError = false) { + // If we have no extras, don't attempt to apply and just return true + if (Items == null || !Items.Any()) + return true; + InternalStopwatch watch = new InternalStopwatch("Applying extra mappings to DAT"); try