fix: check correct array for emptyness when getting dependencies from marker

This commit is contained in:
Jan
2024-01-23 23:59:08 +01:00
parent 50d4282b54
commit c6c89140b2

View File

@ -47,7 +47,7 @@ XAssetInfoGeneric* AssetMarker::GetAssetInfoByName(std::string name) const
std::vector<XAssetInfoGeneric*> AssetMarker::GetDependencies() const
{
std::vector<XAssetInfoGeneric*> dependencies;
if (!m_used_script_strings.empty())
if (!m_dependencies.empty())
{
dependencies.reserve(m_dependencies.size());
for (auto dependency : m_dependencies)