mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Fixed bugs
This commit is contained in:
parent
82d5b42356
commit
c39b5d1ec6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user