Charles Oakley pled no contest to misdemeanor disorderly conduct stemming from his alleged cheating incident at a Vegas casino ... but he won't spend another minute behind bars.
TMZ Sports broke the story ... Oakley was arrested on July 8 after officials say he cheated multiple times at the Cosmopolitan hotel while playing the Ultimate Texas Hold'Em table game.
The ex-NBA star was initially charged with committing a fraudulent act in a casino -- a felony that carried up to 6 years in prison.
But, Oakley's attorneys were able to cut a deal with prosecutors in which they reduced the felony to a misdemeanor .