Advertisement

Runtime error

Started by April 27, 2002 12:34 AM
-1 comments, last by llvllatrix 22 years, 10 months ago
Anyone know why pModel is giving me an access violation? //IMAGE: represents models with a art element, and no collision element class IMAGE { public: //Functions: //Constructors IMAGE() { pModel = NULL; pNext = NULL; } ~IMAGE() { if(!(pModel == NULL)) delete(pModel); if(!(pNext == NULL)) delete(pNext); } //Used to load and initialize a character bool InitCharacter(const char * modelFilename); bool Draw(float r,float g,float b); //Variables: IMAGE * pNext; private: //Functions: //Variables //The art component //Model Structure Model * pModel; //Since this model cant colide, it has no physical component }; Ancient Wisdom: "Copy and paste fills the page, coding fills the mind...and the debugger."

This topic is closed to new replies.

Advertisement