Runtime error
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement