witam czy jest jakaś różnica między kodem
bool operator==(const PositionEx p) const
{
if(p.x == x && p.y == y && p.z == z && p.stackpos == stackpos)
return true;
return false;
}
a kodem
bool operator==(const PositionEx p) const
{
if(p.x == x && p.y == y && p.z == z && p.stackpos == stackpos)
return true;
else
return false;
}
bo mi sie zdaje ze ten else jest niepotrzebny