fix the "Couldn't load skin skins/dvc-c.pcx" skins problem

This commit is contained in:
Bill Currie 2001-04-13 01:45:37 +00:00
parent 5278f9fd73
commit ee7d43f6ae

View file

@ -147,10 +147,10 @@ Skin_Cache (skin_t *skin)
snprintf (name, sizeof (name), "skins/%s.pcx", skin->name);
COM_FOpenFile (name, &file);
if (!file) {
Con_Printf ("Couldn't load skin %s\n", name);
snprintf (name, sizeof (name), "skins/%s.pcx", baseskin->string);
COM_FOpenFile (name, &file);
if (!file) {
Con_Printf ("Couldn't load skin %s\n", name);
skin->failedload = true;
return NULL;
}