From 414ecdfffa419e7cfd159ee10d0997cf4af4560f Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Fri, 24 Mar 2006 19:29:49 +0000 Subject: [PATCH] fixed crash when creating a new binlog file --- amxmodx/binlog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/binlog.cpp b/amxmodx/binlog.cpp index ec342a06..2ebc7f49 100644 --- a/amxmodx/binlog.cpp +++ b/amxmodx/binlog.cpp @@ -85,7 +85,7 @@ void BinLog::WriteOp(BinLogOp op, int plug, ...) if (!fp) return; - if (g_binlog_maxsize) + if (g_binlog_maxsize && op != BinLog_End) { fseek(fp, 0, SEEK_END); if (ftell(fp) > (g_binlog_maxsize * (1024 * 1024)))