mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-08 08:11:35 -05:00
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.
This commit is contained in:
parent
66e669a42b
commit
3f76837512
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user