I am creating some classes for loading furniture into my 3d engine. Here's my problem:
FurnitureItem FI;
FI.PassName ("models/chair.3ds");
FI.Init ();
Now the above works.
FurnitureItem *Furniture = new FurnitureItem[10];
Furniture[0].PassName ("models/chair.3ds");
Furniture[0].Init ();
This doesn't work.
It compiles, but gives me an "encountered problem and will close" pop-up when this part of the code runs.
I have done this kind of thing in so many programs I couldn;t possibly count the times, but this time there is the problem.
Now, I realize it may help you to see the code that these calls are pointing to, but I wondered if anyone had any idea's off the top of their head what may be happening here.