mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-19 07:51:54 +00:00
Don't use long for DDS magic number
It's a DWORD (i.e. 32bit int) according to spec, so using long is actually wrong when sizeof(long) == 8.
This commit is contained in:
parent
0d27bfe7b9
commit
600531ec98
1 changed files with 1 additions and 1 deletions
|
@ -1400,7 +1400,7 @@ bool idImage::CheckPrecompressedImage( bool fullLoad ) {
|
|||
|
||||
fileSystem->CloseFile( f );
|
||||
|
||||
unsigned long magic = LittleLong( *(unsigned long *)data );
|
||||
unsigned int magic = LittleLong( *(unsigned int *)data );
|
||||
ddsFileHeader_t *_header = (ddsFileHeader_t *)(data + 4);
|
||||
int ddspf_dwFlags = LittleLong( _header->ddspf.dwFlags );
|
||||
|
||||
|
|
Loading…
Reference in a new issue