Casino Royal. Not the recent one, the 1960’s one with David Niven and Peter Sellers
The version with or without the ending? My DVD copy is, in fact, missing the last scene (found it on YouTube).