mirror of https://github.com/axmolengine/axmol.git
fixed a bug in CCSpriteFrame::getTexture.
if( m_strTextureFilename.length() <= 0 ) // logic error, must be > 0 { return CCTextureCache::sharedTextureCache()->addImage(m_strTextureFilename.c_str()); }
This commit is contained in:
parent
a901b0bb12
commit
bde351dda7
|
@ -199,7 +199,7 @@ CCTexture2D* CCSpriteFrame::getTexture(void)
|
|||
return m_pobTexture;
|
||||
}
|
||||
|
||||
if( m_strTextureFilename.length() <= 0 ) {
|
||||
if( m_strTextureFilename.length() > 0 ) {
|
||||
return CCTextureCache::sharedTextureCache()->addImage(m_strTextureFilename.c_str());
|
||||
}
|
||||
// no texture or texture filename
|
||||
|
|
Loading…
Reference in New Issue