소스 검색

* 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.
    
-   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 );
    iter = sInternTable->insertUnique( data, data );