Refactor legacy GetSourceGame() to method

This commit is contained in:
Gymnasiast committed 2020-10-17 22:45:12 +02:00
1 parent 8a4df108ba
commit 13fb0b43da
5 files changed
+8 -10

No files matched your search

+2 -2
View File
@@ -230,7 +230,7 @@ namespace ObjectFactory
{
throw std::runtime_error("Object has errors");
}
result->SetSourceGames({ object_entry_get_source_game_legacy(&entry) });
result->SetSourceGames({ entry.GetSourceGame() });
}
}
catch (const std::exception& e)
@@ -262,7 +262,7 @@ namespace ObjectFactory
}
else
{
result->SetSourceGames({ object_entry_get_source_game_legacy(entry) });
result->SetSourceGames({ entry->GetSourceGame() });
}
}
return result;