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();