Fixed bugs

This commit is contained in:
Pavol Marko 2004-07-22 14:55:38 +00:00
parent 82d5b42356
commit c39b5d1ec6

View File

@ -108,7 +108,7 @@ CAmxxReader::CAmxxReader(const char *filename, int cellsize)
amx_Align16(&hdr.magic);
if (hdr.magic == AMX_MAGIC)
{
if (cellsize != 32)
if (cellsize != 4)
{
m_Status = Err_SectionNotFound;
fclose(m_pFile);
@ -141,7 +141,7 @@ CAmxxReader::CAmxxReader(const char *filename, int cellsize)
DATAREAD(&entry, sizeof(entry), 1);
if (entry.cellSize == m_CellSize)
{
m_SectionHdrOffset = entry.offset;
m_SectionHdrOffset = ftell(m_pFile) - sizeof(entry);
break;
}
}