diff options
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(); } } |