diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-14 23:59:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-14 23:59:44 +0300 |
commit | bf235a610f10301471ca83ce153511d63b3fa9f9 (patch) | |
tree | 807def519ff2dd564cdb23a4c05cd9a79338eab2 /src/resources | |
parent | bf9bccc30a186e338f96c230a4f63cc924c77bd8 (diff) | |
download | plus-bf235a610f10301471ca83ce153511d63b3fa9f9.tar.gz plus-bf235a610f10301471ca83ce153511d63b3fa9f9.tar.bz2 plus-bf235a610f10301471ca83ce153511d63b3fa9f9.tar.xz plus-bf235a610f10301471ca83ce153511d63b3fa9f9.zip |
Add missing checks.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/resourcemanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 96902cb4c..410611fc3 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -690,7 +690,8 @@ void ResourceManager::saveTextFile(std::string path, std::string name, std::string fileName = path + "/" + name; file.open(fileName.c_str(), std::ios::out); - file << text << std::endl; + if (file.is_open()) + file << text << std::endl; file.close(); } } |