mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-28 22:15:49 -04:00
Fixed issue with appearance templates
This commit is contained in:
@@ -396,6 +396,11 @@ Appearance *AppearanceTemplateList::createAppearance(const char *const fileName)
|
||||
//-- get the appearance template
|
||||
const AppearanceTemplate *const appearanceTemplate = fetch(fileName);
|
||||
|
||||
if(!appearanceTemplate){
|
||||
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.
|
||||
}
|
||||
|
||||
//-- creating the appearance will increment the reference count
|
||||
Appearance *const appearance = appearanceTemplate->createAppearance();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user