Fix TGA header detection

This commit is contained in:
Viktor
2026-01-08 12:01:43 +00:00
parent f9d9166ff1
commit d4a21b7573

View File

@@ -86,7 +86,7 @@ which_bytes :: proc(data: []byte) -> Which_File_Type {
return v
}
get16le :: #force_inline proc(s: ^string) -> u16 {
v := u16(s[0]) | u16(s[1])<<16
v := u16(s[0]) | u16(s[1])<<8
s^ = s[2:]
return v
}