Use Allegro BITMAP* in a class
So, im trying to create a class which uses a BITMAP*. I don't want to send a BITMAP to the constructor since I want the constructor to load the same image every time. The problem is that when I try to load a bitmap the program crashes. If I create a new bitmap it works as intended.
How should I write the load_bitmap to make the program not crash?
Player::Player(double mPos_x, double mPos_y, double mSpeed, int mHelath, int mStamina, int mMaxEggs, int mArmor)
mRunningImage = load_bitmap("elme_8_dir",NULL); //doesn't work
mIdleImage = create_bitmap(10,10); //works