It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

Apparently this is a problem with the GOG DOSbox. I found it in the victory animation, but it may happen elsewhere. When you beat a city (or when any animation plays) do not hit the space bar or the game may lock up.