summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-14 23:59:44 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-14 23:59:44 +0300
commitbf235a610f10301471ca83ce153511d63b3fa9f9 (patch)
tree807def519ff2dd564cdb23a4c05cd9a79338eab2 /src/resources/resourcemanager.cpp
parentbf9bccc30a186e338f96c230a4f63cc924c77bd8 (diff)
downloadplus-bf235a610f10301471ca83ce153511d63b3fa9f9.tar.gz
plus-bf235a610f10301471ca83ce153511d63b3fa9f9.tar.bz2
plus-bf235a610f10301471ca83ce153511d63b3fa9f9.tar.xz
plus-bf235a610f10301471ca83ce153511d63b3fa9f9.zip
Add missing checks.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp3
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();
}
}