diff --git a/lib/base/string.cpp b/lib/base/string.cpp index e8b9dbfe3..af1adb8eb 100644 --- a/lib/base/string.cpp +++ b/lib/base/string.cpp @@ -41,7 +41,7 @@ String& String::operator=(Value&& other) if (other.IsString()) m_Data = std::move(other.Get()); else - m_Data = other; + *this = static_cast(other); return *this; }