Fix regression from 6d05bf16b1

This commit is contained in:
Wojtek Figat
2025-09-05 08:40:13 +02:00
parent 67220d3f80
commit 1f6d837117
4 changed files with 4 additions and 4 deletions

View File

@@ -180,7 +180,7 @@ bool JsonAssetBase::Save(const StringView& path)
_isResaving = false;
// Save json to file
if (File::WriteAllBytes(path.HasChars() ? path : StringView(GetPath()), (byte*)buffer.GetString(), (int32)buffer.GetSize()))
if (File::WriteAllBytes(path.HasChars() ? path : GetPath(), (byte*)buffer.GetString(), (int32)buffer.GetSize()))
{
LOG(Error, "Cannot save \'{0}\'", ToString());
return true;