summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/colordb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/colordb.cpp b/src/resources/colordb.cpp
index f738b471..caa1fbda 100644
--- a/src/resources/colordb.cpp
+++ b/src/resources/colordb.cpp
@@ -98,7 +98,8 @@ void ColorDB::unload()
std::string& ColorDB::get(int id)
{
- assert(mLoaded);
+ if(!mLoaded)
+ load();
ColorIterator i = mColors.find(id);