Compilation errors fixing

This commit is contained in:
Wojtek Figat
2025-08-02 17:05:13 +02:00
parent b26d6ea108
commit 744c94b3cc
4 changed files with 7 additions and 3 deletions

View File

@@ -467,7 +467,7 @@ void BinaryAsset::OnDeleteObject()
StringView BinaryAsset::GetPath() const
{
#if USE_EDITOR
return Storage ? Storage->GetPath() : StringView::Empty;
return Storage ? StringView(Storage->GetPath()) : StringView::Empty;
#else
// In build all assets are packed into packages so use ID for original path lookup
return Content::GetRegistry()->GetEditorAssetPath(_id);