From be35cc99125851ddccbe2216f1656c4097544912 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Tue, 4 Mar 2008 18:02:16 +0000 Subject: [PATCH] Fixed amb1267 - FlagManager caused a crash if the cmdaccess.ini was not writable --- amxmodx/CFlagManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/amxmodx/CFlagManager.cpp b/amxmodx/CFlagManager.cpp index 458a9b80..3f4063a3 100644 --- a/amxmodx/CFlagManager.cpp +++ b/amxmodx/CFlagManager.cpp @@ -294,6 +294,11 @@ void CFlagManager::WriteCommands(void) File=fopen(m_strConfigFile.c_str(),"a"); + + if (!File) + { + return; + } iter=m_FlagList.begin(); end=m_FlagList.end();