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

Getting EXC_BAD_ACCESS all the time #4

Open
denizs opened this issue Mar 12, 2017 · 0 comments
Open

Getting EXC_BAD_ACCESS all the time #4

denizs opened this issue Mar 12, 2017 · 0 comments

Comments

@denizs
Copy link

denizs commented Mar 12, 2017

First of all - I admire what you've done! The tutorial really helped me get started. However, I'm experiencing some issues while following along:
When I perform a dynamic_case from Node* to Piece* and then try to call piece->getSpriteHeight(), I get a EXC_BAD_ACCESS.

I found this results from the dynamic_cast. Changing the cast to static_cast fixed the issue.

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

1 participant