Explorar o código

fix reported ASAN crash

AzaezelX %!s(int64=3) %!d(string=hai) anos
pai
achega
6474413aaf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Engine/source/postFx/postEffect.cpp

+ 1 - 1
Engine/source/postFx/postEffect.cpp

@@ -1644,7 +1644,7 @@ void PostEffect::setTexture( U32 index, const String &texFilePath )
 void PostEffect::setTexture(U32 index, const GFXTexHandle& texHandle)
 {
    // Set the new texture name.
-   mTextureName[index] = "";
+   mTextureName[index] = StringTable->EmptyString();
    mTexture[index].free();
 
    // Skip empty stages or ones with variable or target names.