fix error

This commit is contained in:
Andrew Cassidy 2021-03-23 03:14:23 -07:00
parent 8676a6c10f
commit dae82c0662

View File

@ -173,7 +173,7 @@ class DDSHeader:
assert unpacked[0] == DDSHeader.size, "Incorrect DDS header size."
header = DDSHeader()
header.flags = DDSHeader.DDSFlags(unpacked[1])
header.flags = DDSHeader.Flags(unpacked[1])
header.dimensions = unpacked[2:4:-1]
header.pitch, header.depth, header.mipmapcount = unpacked[4:7]