i have a queue of pointers to projectile objects:
queue<Projectile*> InactiveProjectiles;
and i want to remove an object after it has been reactivated.
this works the way i would like:
projectile *temp;
if(!InactiveProjectiles.empty())
{
temp = InactiveProjectiles.front();
//temp->Reactivate(mScene,GunNode,Target,Target2);
InactiveProjectiles.pop();
}
but the instant i uncomment that reactivate line the pop doesnt seem to work (the queue doesn't get any shorter)...
for now all reactivate() is:
void Projectile::Reactivate(scene *_mScene,SceneNode* GunNode,Vector3 Target,Vector3 Target2)
{
Active=true;
}
what is going on....... why is it that if i change one thing in this object i can't pop it from my queue?
[Edited by - jchmack on March 11, 2007 4:45:46 AM]