diff --git a/cocos/2d/CCTextureCache.cpp b/cocos/2d/CCTextureCache.cpp index d6e5bec858..c6527ba07f 100644 --- a/cocos/2d/CCTextureCache.cpp +++ b/cocos/2d/CCTextureCache.cpp @@ -671,7 +671,7 @@ void VolatileTextureMgr::reloadAllTextures() break; case VolatileTexture::kString: { - vt->_texture->initWithString(vt->_text, vt->_fontDefinition); + vt->_texture->initWithString(vt->_text.c_str(), vt->_fontDefinition); } break; case VolatileTexture::kImage: