You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
fromNode*
toPiece*
and then try to callpiece->getSpriteHeight()
, I get aEXC_BAD_ACCESS
.I found this results from the
dynamic_cast
. Changing the cast tostatic_cast
fixed the issue.The text was updated successfully, but these errors were encountered: