Event Diff: move version check closer to init

Sanity Check method checks the objects that expose the flagwork, which no longer is always a save file.
This commit is contained in:
Kurt 2024-03-17 13:55:27 -05:00
parent bc7118b493
commit 2259551ace

View file

@ -35,6 +35,11 @@ public sealed class EventBlockDiff<TSave, TWorkValue> : IEventWorkDiff
Message = DifferentGameGroup;
return;
}
if (s1.Version != s2.Version)
{
Message = DifferentVersion;
return;
}
Diff(t1, t2);
}
@ -53,9 +58,6 @@ public sealed class EventBlockDiff<TSave, TWorkValue> : IEventWorkDiff
if (s1.GetType() != s2.GetType())
return DifferentGameGroup;
if (s1 is not IVersion i1 || s2 is not IVersion i2 || i1.Version != i2.Version)
return DifferentVersion;
return Valid;
}