That’s is error memory address. I have a create function for MasterTarget code and all value was init also.
However, this object has a lot of garbage value, so I don’t understand
I just want to know why I have bad access and how can I solve?
this is message in xcode error
please help me! have a good day.
try using dynamic_cast
instead of static_cast
Lance Gray wrote:
try using dynamic_cast
instead of static_cast
Thank you.
but I got a code first dynamic cast, so I got a lot of crash for dynamic cast.
I changed to code with static_cast 2 month ago.
my foreach loop is use a same CCArray.
CCArray* TargetList got all target class like bullet, hero, enemy
so Totally TargetList is just like God Array.
may I make a new CCArray like bulletList, HeroList EnemyList?
is it good way to divide a list for each target?