diff --git a/src/Nazara/Core/String.cpp b/src/Nazara/Core/String.cpp index d7293231d..8f2bf257f 100644 --- a/src/Nazara/Core/String.cpp +++ b/src/Nazara/Core/String.cpp @@ -4206,6 +4206,9 @@ bool operator==(const NzString& first, const NzString& second) if (first.m_sharedString->size != second.m_sharedString->size) return false; + if (first.m_sharedString == second.m_sharedString) + return true; + return std::strcmp(first.m_sharedString->string, second.m_sharedString->string) == 0; }