fixed clients search for maps within subfolders

This commit is contained in:
oy 2011-04-04 16:53:02 +02:00
parent 9da43765f3
commit 9cb2f07b80

View file

@ -1000,7 +1000,7 @@ const char *CClient::LoadMapSearch(const char *pMapName, int WantedCrc)
// search for the map within subfolders
char aFilename[128];
str_format(aFilename, sizeof(aFilename), "%s.map", pMapName);
if(Storage()->FindFile(aFilename, "maps", IStorage::TYPE_ALL, aBuf, sizeof(aBuf)));
if(Storage()->FindFile(aFilename, "maps", IStorage::TYPE_ALL, aBuf, sizeof(aBuf)))
pError = LoadMap(pMapName, aBuf, WantedCrc);
return pError;