diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-03 20:33:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-03 20:33:54 +0300 |
commit | 576d56c7b5636cf95ac8eb1650949da6a26a1bd7 (patch) | |
tree | eb7b037cece1d1e6b9cddb206ac75c780a644129 /src/configuration.cpp | |
parent | 9b1fed5643a2447495cf4b43309a23ada7901c03 (diff) | |
download | ManaVerse-576d56c7b5636cf95ac8eb1650949da6a26a1bd7.tar.gz ManaVerse-576d56c7b5636cf95ac8eb1650949da6a26a1bd7.tar.bz2 ManaVerse-576d56c7b5636cf95ac8eb1650949da6a26a1bd7.tar.xz ManaVerse-576d56c7b5636cf95ac8eb1650949da6a26a1bd7.zip |
fix server config saving if select switch character or switch server.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index da6e97501..cb7adf8f1 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -801,6 +801,9 @@ void ConfigurationObject::writeToXML(const XmlTextWriterPtr writer) void Configuration::write() { + if (mConfigPath.empty()) + return; + // Do not attempt to write to file that cannot be opened for writing FILE *const testFile = fopen(mConfigPath.c_str(), "w"); if (!testFile) |