diff --git a/programs/develop/libraries/libs-dev/libimg/tga/tga.asm b/programs/develop/libraries/libs-dev/libimg/tga/tga.asm index c51dfd777..c1ad9d0b5 100644 --- a/programs/develop/libraries/libs-dev/libimg/tga/tga.asm +++ b/programs/develop/libraries/libs-dev/libimg/tga/tga.asm @@ -34,10 +34,10 @@ proc img.is.tga _data, _length ;//////////////////////////////////////////////// ;;------------------------------------------------------------------------------------------------;; ;< eax = false / true ;; ;;================================================================================================;; + push ebx cmp [_length], 18 jbe .nope mov eax, [_data] - push ebx mov ebx,[eax+1] ;bl=cmatype,bh=subtype cmp bl,1 ;cmatype is in [0..1] ja .nope