fix building on mips machines

0.6.2
Bret Curtis 7 years ago
parent c920f95d1e
commit 7a7b040216

@ -153,12 +153,12 @@ void NiPixelData::read(NIFStream *nif)
// Unknown
nif->skip(12);
mips = nif->getInt();
number_of_mipmaps = nif->getInt();
// Bytes per pixel, should be bpp * 8
/* int bytes = */ nif->getInt();
for(int i=0; i<mips; i++)
for(int i=0; i<number_of_mipmaps; i++)
{
// Image size and offset in the following data field
Mipmap m;

@ -115,7 +115,7 @@ public:
Format fmt;
unsigned int rmask, gmask, bmask, amask;
int bpp, mips;
int bpp, number_of_mipmaps;
struct Mipmap
{

Loading…
Cancel
Save