mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-11-01 23:26:57 +00:00
parent
42346f66b2
commit
0a9a1dc7ca
@ -1076,6 +1076,11 @@ static int artReadHeader(Art* art, File* stream)
|
||||
if (fileReadInt32List(stream, art->dataOffsets, ROTATION_COUNT) == -1) return -1;
|
||||
if (fileReadInt32(stream, &(art->dataSize)) == -1) return -1;
|
||||
|
||||
// CE: Fix malformed `frm` files with `dataSize` set to 0 in Nevada.
|
||||
if (art->dataSize == 0) {
|
||||
art->dataSize = fileGetSize(stream);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user