Fix compiler warning causing compile errors

Unused initialized local variable.
This commit is contained in:
Kawe Mazidjatari 2023-05-21 01:59:37 +02:00
parent ecf7f973f8
commit 27925d3b7d

View File

@ -226,9 +226,6 @@ void CMapLoadHelper::Constructor(CMapLoadHelper* loader, int lumpToLoad)
FileHandle_t hLumpFile;
if (/*lumpHandlingType &&*/ (hLumpFile = FileSystem()->Open(lumpPathBuf, "rb"), hLumpFile != FILESYSTEM_INVALID_HANDLE))
{
int nSize = FileSystem()->Size(hLumpFile);
//DevMsg(eDLL_T::ENGINE, "Loading lump %.4x from file. Buffer: %p\n", lumpToLoad, loader->m_pRawData);
FileSystem()->ReadEx(loader->m_pRawData, bytesToRead, bytesToRead, hLumpFile);
FileSystem()->Close(hLumpFile);