Skip to content

Commit 32705f7

Browse files
committed
Bugfix for IMC file writing.
1 parent 1954dbe commit 32705f7

File tree

1 file changed

+1
-1
lines changed
  • xivModdingFramework/Variants/FileTypes

1 file changed

+1
-1
lines changed

xivModdingFramework/Variants/FileTypes/Imc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public async Task SaveFullImcInfo(FullImcInfo info, string path, string itemName
246246
var data = new List<byte>();
247247

248248
// 4 Header bytes.
249-
data.AddRange(BitConverter.GetBytes(info.SubsetCount));
249+
data.AddRange(BitConverter.GetBytes((short) info.SubsetCount));
250250
data.AddRange(BitConverter.GetBytes((short) info.TypeIdentifier));
251251

252252
// The rest of this is easy, it's literally just post all the sets in order.

0 commit comments

Comments
 (0)