Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a bug in replaceSprite #23

Open
landvibe opened this issue Jul 23, 2013 · 1 comment
Open

a bug in replaceSprite #23

landvibe opened this issue Jul 23, 2013 · 1 comment

Comments

@landvibe
Copy link

i recommand this code change

** before
if (aSpriteFullPath.substr(aSpriteFullPath.length() - theOriginSpriteName.length()) == theOriginSpriteName)
** after
if (aSpriteFullPath.length()>=theOriginSpriteName.length() && aSpriteFullPath.substr(aSpriteFullPath.length() - theOriginSpriteName.length()) == theOriginSpriteName)

@vkbsb
Copy link

vkbsb commented Jul 23, 2013

ya this is required. This caused crashes a couple of times for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants