Revert "Revert "Fix skin prefix search crash""

This reverts commit 4ad0f61a00.
This commit is contained in:
def 2020-09-20 02:19:28 +02:00
parent a09be98df9
commit 1d868fec70

View file

@ -257,7 +257,11 @@ int CSkins::FindImpl(const char *pName)
return -1;
}
int DefaultIndex = CSkins::Find("default");
int DefaultIndex = CSkins::FindImpl("default");
// if default fails don't start any download
if(DefaultIndex == -1)
return -1;
CDownloadSkin Skin;
str_copy(Skin.m_aName, pName, sizeof(Skin.m_aName));