Fix launcher menu not usingg custom default texture pack's default.png and terrain.png if they exist

This commit is contained in:
UnknownShadow200 2019-05-17 16:41:13 +10:00
parent 522c2c94b6
commit 6b92ee3348

View File

@ -413,7 +413,7 @@ void Launcher_TryLoadTexturePack(void) {
Options_UNSAFE_Get(OPT_DEFAULT_TEX_PACK, &texPack);
String_InitArray(path, pathBuffer);
String_Format1(&path, "texpacks/", &texPack);
String_Format1(&path, "texpacks/%s", &texPack);
if (!texPack.length || !File_Exists(&path)) path = defZipPath;
if (!File_Exists(&path)) return;