diff --git a/neo/idlib/Str.h b/neo/idlib/Str.h index 3ac1cd62..70e6c9dd 100644 --- a/neo/idlib/Str.h +++ b/neo/idlib/Str.h @@ -519,6 +519,10 @@ ID_INLINE char &idStr::operator[]( int index ) { #pragma GCC diagnostic pop ID_INLINE void idStr::operator=( const idStr &text ) { + if (&text == this) { + return; + } + int l; l = text.Length();