Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualRulerOfNothing

Posted 17 January 2013 - 06:55 PM

The problem here appears to be that either currentAIstate was not constructed with new, or that you are sharing AI states between c_Zombie instances (so when you delete one c_Zombie's AI state, you are causing problems for other instances which were still using that AI state). Keep in mind that you should only use delete on objects constructed with new (so don't use delete on SDL_Surfaces)

#1RulerOfNothing

Posted 17 January 2013 - 06:54 PM

The problem here appears to be that either currentAIstate was not constructed with new, or that you are sharing AI states between c_Zombie instances (so when you delete one c_Zombie's AI state, you are causing problems for other instances which were still using that AI state)

PARTNERS