summaryrefslogtreecommitdiffstats
path: root/gui/resources.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gui/resources.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/resources.cpp b/gui/resources.cpp
index d9f2741d7..e0016fc7b 100644
--- a/gui/resources.cpp
+++ b/gui/resources.cpp
@@ -314,7 +314,8 @@ void ResourceManager::LoadResources(xml_node<>* resList, ZipArchive* pZip)
{
LOGERR("Resource type (%s) not supported.\n", type.c_str());
}
- if (res == NULL || res->GetResource() == NULL)
+
+ if (res == NULL || !res->loadedOK())
{
std::string res_name;
if (child->first_attribute("name"))