Fix compile error

This commit is contained in:
Wojtek Figat
2021-05-02 12:30:34 +02:00
parent 28969a7de4
commit b984276bc6

View File

@@ -82,7 +82,7 @@ bool LocalizedStringTable::Save(const StringView& path)
writer.EndObject();
// Save asset
const bool saveResult = CreateJson::Create(path.HasChars() ? path : GetPath(), outputData, TypeName);
const bool saveResult = CreateJson::Create(path.HasChars() ? path : StringView(GetPath()), outputData, TypeName);
if (saveResult)
{
LOG(Error, "Cannot save \'{0}\'", ToString());