aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-01-09 11:58:00 +0000
committerGitHub <noreply@github.com>2026-01-09 11:58:00 +0000
commitfc19df7b1eb55ec1a5fd5a4b7a17894809f296e8 (patch)
tree2d3b8ad3fde2e709dfedeb11636fda45753908e4
parentb03befb604cfa400f76c3144323e3e69b8251ab9 (diff)
parentd4a21b7573f01a7d28bcdca805f0d6b0360932a8 (diff)
Merge pull request #6114 from dayllenger/master
Fix TGA header detection
-rw-r--r--core/image/general.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/image/general.odin b/core/image/general.odin
index 1662cf14e..779f5d0b1 100644
--- a/core/image/general.odin
+++ b/core/image/general.odin
@@ -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
}