Fix IsMysteryGiftUnlocked checked

Closes #4106
This commit is contained in:
Kurt 2024-02-24 19:51:42 -06:00
parent 276a1952fb
commit 5334f1ef78

View file

@ -527,14 +527,14 @@ public sealed class SAV2 : SaveFile, ILangDeviantSave, IEventFlagArray, IEventWo
}
}
public bool MysteryGiftIsUnlocked
public bool IsMysteryGiftUnlocked
{
get
{
int ofs = Offsets.MysteryGiftIsUnlocked;
if (ofs == -1)
return false;
return Data[ofs] == 0x00;
return (sbyte)Data[ofs] >= 0x00; // -1 is disabled; [0,5] is unlocked
}
set
{