correction

This commit is contained in:
DarthArgus
2016-01-12 21:57:16 -06:00
parent f952820391
commit 66925d9b54
@@ -399,15 +399,16 @@ Appearance *AppearanceTemplateList::createAppearance(const char *const fileName)
//-- get the appearance template
const AppearanceTemplate *const appearanceTemplate = fetch(fileName);
#ifdef _DEBUG //probably should modify the macro sometime to just be quiet if this isn't defined
#ifdef _DEBUG
DataLint::pushAsset(fileName);
#endif
//probably should modify the macro sometime to just be quiet if this isn't defined
if (appearanceTemplate == NULL){
DEBUG_WARNING(true, ("FIX ME: Appearance template for %s could not be fetched - is it missing?", fileName));
return NULL; // Cekis: TODO: Figure out why the template can't be fetched. DarthArgus: always is due to a missing file or one of the redirectors having a bad path
}
DataLint::pushAsset(fileName);
#endif
//-- creating the appearance will increment the reference count
Appearance *const appearance = appearanceTemplate->createAppearance();