diff --git a/idlib/Str.h b/idlib/Str.h index 3ac1cd6..70e6c9d 100644 --- a/idlib/Str.h +++ b/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();