mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
fixed saving config message
This commit is contained in:
parent
a97c15b20c
commit
d55d6ab82d
|
@ -102,7 +102,10 @@ public:
|
|||
{
|
||||
if(!m_pStorage)
|
||||
return;
|
||||
m_ConfigFile = m_pStorage->OpenFile(pFilename ? pFilename : "settings.cfg", IOFLAG_WRITE, IStorage::TYPE_SAVE);
|
||||
|
||||
if(!pFilename)
|
||||
pFilename = "settings.cfg";
|
||||
m_ConfigFile = m_pStorage->OpenFile(pFilename, IOFLAG_WRITE, IStorage::TYPE_SAVE);
|
||||
|
||||
if(!m_ConfigFile)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue