Ironically, the p2 may be there for debugging reasons, but what you're doing with it introduces a bug. If you are going to add code for debugging purposes, you need to be sure it works.
Take...
Type: Posts; User: grumpy
Ironically, the p2 may be there for debugging reasons, but what you're doing with it introduces a bug. If you are going to add code for debugging purposes, you need to be sure it works.
Take...
Look at this code in airport::move().
if((*planeIteratorMoj)->move())
{
delete *planeIteratorMoj;
}
plane * p2 = (*planeIteratorMoj);