Fix maison count

why did this hide out forever? (because nobody used it since refactored)
This commit is contained in:
Kurt
2016-12-31 23:04:45 -08:00
parent 6b6f78e476
commit d73a7fb580
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ public class Trainer
public Trainer(byte[] data)
{
Class = BitConverter.ToUInt16(data, 0);
Count = BitConverter.ToUInt16(data, 0);
Count = BitConverter.ToUInt16(data, 2);
Choices = new ushort[Count];
for (int i = 0; i < Count; i++)
Choices[i] = BitConverter.ToUInt16(data, 4 + 2 * i);

View File

@@ -15,7 +15,7 @@ public class Trainer
public Trainer(byte[] data)
{
Class = BitConverter.ToUInt16(data, 0);
Count = BitConverter.ToUInt16(data, 0);
Count = BitConverter.ToUInt16(data, 2);
Choices = new ushort[Count];
for (int i = 0; i < Count; i++)
Choices[i] = BitConverter.ToUInt16(data, 4 + 2 * i);