diff --git a/UI/Theme.cpp b/UI/Theme.cpp index 1dced507e3..be19c7653a 100644 --- a/UI/Theme.cpp +++ b/UI/Theme.cpp @@ -166,18 +166,16 @@ static UI::Style MakeStyle(uint32_t fg, uint32_t bg) { static void LoadAtlasMetadata(Atlas &metadata, const char *filename, bool required) { size_t atlas_data_size = 0; - if (!metadata.IsMetadataLoaded()) { - const uint8_t *atlas_data = VFSReadFile(filename, &atlas_data_size); - bool load_success = atlas_data != nullptr && metadata.Load(atlas_data, atlas_data_size); - if (!load_success) { - if (required) - ERROR_LOG(G3D, "Failed to load %s - graphics will be broken", filename); - else - WARN_LOG(G3D, "Failed to load %s", filename); - // Stumble along with broken visuals instead of dying... - } - delete[] atlas_data; + const uint8_t *atlas_data = VFSReadFile(filename, &atlas_data_size); + bool load_success = atlas_data != nullptr && metadata.Load(atlas_data, atlas_data_size); + if (!load_success) { + if (required) + ERROR_LOG(G3D, "Failed to load %s - graphics will be broken", filename); + else + WARN_LOG(G3D, "Failed to load %s", filename); + // Stumble along with broken visuals instead of dying... } + delete[] atlas_data; } void UpdateTheme(UIContext *ctx) {