void SnakeSeg::kill()
{
if (alive)
{
alive = false;
erase();
links = 0;
if (next)
{
delete next;
next = 0 ; // isn't this required?
}
}
}
henpecked1 commented: V was very patient and very helpful +1
superjacent commented: Concise, to the point, very helpful. +1
Salem commented: good answer +15