|
-
March 18th, 2009, 01:38 PM
#20
Re: Vector, class, and iterator issues
 Originally Posted by Escapetomsfate
EDIT: Could this be it? it is in the Weapon class constructor.
Code:
//add self to WeaponList vector.
WeaponList.push_back(*this);
You're adding a copy of a not yet constructed object to a vector. Could very well be a problem especially since you seem to have no copy constructor defined for the Weapon class that has some pointer members.
Kurt
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|