Actually, I believe the OP is referring to a new 2015 rule where baskets do NOT count if a charging foul is called:
Offense no longer allowed to score on charging fouls
In past seasons, if the ball had been released before contact was made, the basket would count. In 2015-16, though, regardless of whether the ball goes in or not, the points will not count on a charging call.
In last night's game, perhaps the offensive foul wasn't on the shooter himself (and thus not a charge), and was on a different offensive player.