mirror of
https://github.com/kwsch/pkNX.git
synced 2026-08-26 04:20:28 -05:00
Bug fixes
This commit is contained in:
@@ -26,8 +26,8 @@ public AHTBEntry(BinaryReader br)
|
||||
|
||||
public void Write(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Hash);
|
||||
bw.Write(Name.Length + 1);
|
||||
bw.Write((ulong)Hash);
|
||||
bw.Write((ushort)(Name.Length + 1));
|
||||
bw.Write(Name);
|
||||
bw.Write((byte)0); // \0 terminator
|
||||
}
|
||||
|
||||
@@ -145,6 +145,13 @@ public void FixMissingData()
|
||||
for (byte f = 1; f < l.FormCount; f++)
|
||||
{
|
||||
var formL = Table[l.FormStatsIndex + (f - 1)];
|
||||
|
||||
if (formL.Form != f)
|
||||
{
|
||||
Debug.Assert(formL.Form == f);
|
||||
formL.Form = f;
|
||||
}
|
||||
|
||||
if (formL.HP != 0)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user