When a conviction or sentence imposed in superior court has been set aside on direct review or collateral attack, the court may not impose a new sentence for the same offense, or for a different offense based on the same conduct, which is more severe than the prior sentence less the portion of the prior sentence previously served. This section shall not apply when a defendant, on direct review or collateral attack, succeeds in having a plea of guilty vacated.
N.C. Gen. Stat. § 15A-1335