I have a strange bigger than problem.
iGhostLen is -1 and iMaxGhost is 480. But still the line iGhostLen=iMaxGhost; is hit.
Is -1 a special case or where could I have gone wrong. I don't think that -1 is bigger than 480.
Thank you.
unsigned int iMaxGhost=(120 * 4);
int iGhostLen=-1
if (iGhostLen > iMaxGhost)
{
iGhostLen=iMaxGhost;
}