Fix incorrect mod data in getInfo

This commit is contained in:
BrentVL-1952840 2023-04-25 10:51:52 +02:00
parent b7ed14eabf
commit dc61e932f5

View File

@ -203,6 +203,11 @@ namespace workshop
std::string get_mod_resized_name(const std::string& dir_name)
{
if (dir_name == "usermaps" || dir_name.empty())
{
return dir_name;
}
std::string result = dir_name;
for (unsigned int i = 0; i < *game::modsCount; ++i)
@ -246,7 +251,7 @@ namespace workshop
std::string get_mod_publisher_id(const std::string& dir_name)
{
if (dir_name == "usermaps")
if (dir_name == "usermaps" || dir_name.empty())
{
return dir_name;
}