From 3f768375129b357b7f6729eb5a5d3eddae636e9e Mon Sep 17 00:00:00 2001 From: Tsunamical Date: Sat, 4 Feb 2017 11:20:59 -0500 Subject: [PATCH] Change PGT to a sealed class This one is a bit more necessary as we have a virtual call inside PGT, and if it isn't a sealed class, we may end up at a null dereference under a race condition (which theoretically still *shouldn't* happen, but rather be safe than sorry). This also brings it inline with PCD. --- PKHeX/MysteryGifts/PGT.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX/MysteryGifts/PGT.cs b/PKHeX/MysteryGifts/PGT.cs index c579e15b5..76f2322cd 100644 --- a/PKHeX/MysteryGifts/PGT.cs +++ b/PKHeX/MysteryGifts/PGT.cs @@ -100,7 +100,7 @@ public override PKM convertToPKM(SaveFile SAV) return Gift.convertToPKM(SAV); } } - public class PGT : MysteryGift + public sealed class PGT : MysteryGift { internal const int Size = 0x104; // 260 public override int Format => 4;