Jump to content

  • Log In with Google      Sign In   
  • Create Account


#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