From c39b5d1ec6e7bc89abea3f427004cceb88de7e51 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Thu, 22 Jul 2004 14:55:38 +0000 Subject: [PATCH] Fixed bugs --- amxmodx/amxxfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/amxxfile.cpp b/amxmodx/amxxfile.cpp index 5ca740f1..665c7500 100755 --- a/amxmodx/amxxfile.cpp +++ b/amxmodx/amxxfile.cpp @@ -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; } }