zinnschlag/openmw — pull request #460 by bwrsandman (2012-12-04 04:56:11+00:00)
Title: Double spending when bribing bug fixed.

There was a bug in the persuasion menu.
The persuasion window would not hide and the gold was not updated.

The player was able to keep bribing even when he ran out of gold, at which point the gold amount would go in the negatives.
I got the persuasion window to hide at the proper moment and added an assert to the addOrRemoveGold to complement the case where no gold is found.

I am not sure if the game should call an exception and/or set the gold to zero at that point, but for now double spending will be caught by the assert.