ZoneLoading: Only dump localized strings when there are any in the pool

This commit is contained in:
Jan 2019-12-23 21:24:06 +01:00
parent ca1d188759
commit d6f49c459c

View File

@ -61,6 +61,9 @@ std::string AssetDumperLocalizeEntry::GetNameOfLanguage(ZoneLanguage language)
void AssetDumperLocalizeEntry::DumpPool(Zone* zone, AssetPool<LocalizeEntry>* pool, const std::string& basePath) void AssetDumperLocalizeEntry::DumpPool(Zone* zone, AssetPool<LocalizeEntry>* pool, const std::string& basePath)
{ {
if (pool->m_asset_lookup.size() == 0)
return;
const std::string language = GetNameOfLanguage(zone->m_language); const std::string language = GetNameOfLanguage(zone->m_language);
const std::string stringsPath = utils::Path::Combine(basePath, language + "/localizedstrings"); const std::string stringsPath = utils::Path::Combine(basePath, language + "/localizedstrings");