Skip to content

Commit e804427

Browse files
committed
More safety check adjustments.
1 parent 1ecbd3a commit e804427

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

xivModdingFramework/SqPack/FileTypes/Dat.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ public async Task<long> WriteToDat(List<byte> importData, Mod modEntry, string i
16011601
*/
16021602
if (modEntry != null && importData.Count <= modEntry.data.modSize)
16031603
{
1604-
if (modEntry.data.modOffset != 0)
1604+
if (modEntry.data.modOffset > 0)
16051605
{
16061606

16071607
var sizeDiff = modEntry.data.modSize - importData.Count;

0 commit comments

Comments
 (0)