- damn integer type confusion... :(

SVN r3155 (trunk)
This commit is contained in:
Christoph Oelckers 2011-02-19 13:35:11 +00:00
parent 1993e969b7
commit 1b93b56f46

View file

@ -1135,10 +1135,10 @@ int FTextureManager::CountLumpTextures (int lumpnum)
if (lumpnum >= 0) if (lumpnum >= 0)
{ {
FWadLump file = Wads.OpenLumpNum (lumpnum); FWadLump file = Wads.OpenLumpNum (lumpnum);
SDWORD numtex; DWORD numtex;
file >> numtex; file >> numtex;
return numtex >= 0 ? numtex : 0; return int(numtex) >= 0 ? numtex : 0;
} }
return 0; return 0;
} }