From 1b93b56f46553928d40cb0788402506defa783f5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 19 Feb 2011 13:35:11 +0000 Subject: [PATCH] - damn integer type confusion... :( SVN r3155 (trunk) --- src/textures/texturemanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textures/texturemanager.cpp b/src/textures/texturemanager.cpp index 88319c3601..eb1a967f81 100644 --- a/src/textures/texturemanager.cpp +++ b/src/textures/texturemanager.cpp @@ -1135,10 +1135,10 @@ int FTextureManager::CountLumpTextures (int lumpnum) if (lumpnum >= 0) { FWadLump file = Wads.OpenLumpNum (lumpnum); - SDWORD numtex; + DWORD numtex; file >> numtex; - return numtex >= 0 ? numtex : 0; + return int(numtex) >= 0 ? numtex : 0; } return 0; }