File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
xivModdingFramework/SqPack/FileTypes Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1854,6 +1854,12 @@ await Task.Run(() =>
1854
1854
{
1855
1855
found = true ;
1856
1856
oldOffset = br . ReadInt32 ( ) ;
1857
+
1858
+ if ( oldOffset == 0 )
1859
+ {
1860
+ throw new Exception ( "Cannot update index information for file with null data offset." ) ;
1861
+ }
1862
+
1857
1863
bw . BaseStream . Seek ( br . BaseStream . Position - 4 , SeekOrigin . Begin ) ;
1858
1864
uint uOffset = ( uint ) ( offset / 8 ) ;
1859
1865
bw . Write ( uOffset ) ;
@@ -1879,10 +1885,6 @@ await Task.Run(() =>
1879
1885
throw new Exception ( "Cannot update index information for non-existent file." ) ;
1880
1886
}
1881
1887
1882
- if ( oldOffset == 0 )
1883
- {
1884
- throw new Exception ( "Cannot update index information for file with null data offset." ) ;
1885
- }
1886
1888
1887
1889
return oldOffset ;
1888
1890
}
You can’t perform that action at this time.
0 commit comments