diff --git a/src/Core/GameProject/CGameExporter.cpp b/src/Core/GameProject/CGameExporter.cpp index d35a47f1..389364c3 100644 --- a/src/Core/GameProject/CGameExporter.cpp +++ b/src/Core/GameProject/CGameExporter.cpp @@ -664,7 +664,7 @@ void CGameExporter::ExportResource(SResourceInstance& rRes) } } -TString CGameExporter::MakeWorldName(CAssetID WorldID) +TString CGameExporter::MakeWorldName(const CAssetID& WorldID) { [[maybe_unused]] const CResourceEntry *pWorldEntry = mpStore->FindEntry(WorldID); ASSERT(pWorldEntry && pWorldEntry->ResourceType() == EResourceType::World); diff --git a/src/Core/GameProject/CGameExporter.h b/src/Core/GameProject/CGameExporter.h index dfd11c6a..85b76809 100644 --- a/src/Core/GameProject/CGameExporter.h +++ b/src/Core/GameProject/CGameExporter.h @@ -89,7 +89,7 @@ protected: void ExportCookedResources(); void ExportResourceEditorData(); void ExportResource(SResourceInstance& rRes); - TString MakeWorldName(CAssetID WorldID); + TString MakeWorldName(const CAssetID& WorldID); // Convenience Functions SResourceInstance* FindResourceInstance(const CAssetID& rkID)