mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Revert "Revert "Fix skin prefix search crash""
This reverts commit 4ad0f61a00
.
This commit is contained in:
parent
a09be98df9
commit
1d868fec70
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue