Переглянути джерело

* BugFix: Correct not setting the string to interned when allocating a StringData with a DataChunker in str.cpp.

Robert MacGregor 3 роки тому
батько
коміт
6d0e81763b
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      Engine/source/core/util/str.cpp

+ 1 - 1
Engine/source/core/util/str.cpp

@@ -647,7 +647,7 @@ String String::intern() const
       
       
    // Create new.
    // Create new.
    
    
-   StringData* data = StringData::Create(c_str(), length(), sInternTable->mChunker);
+   StringData* data = StringData::Create(c_str(), length(), sInternTable->mChunker, true);
    
    
    //StringData* data = new ( length(), sInternTable->mChunker ) StringData( c_str(), true );
    //StringData* data = new ( length(), sInternTable->mChunker ) StringData( c_str(), true );
    iter = sInternTable->insertUnique( data, data );
    iter = sInternTable->insertUnique( data, data );