ScummVM version : 1.8.0git6200-g5afdf32 (Jan 18 2016 04:08:31)
Language : English (downloaded from ScummVM website)
Windows 7 Ultimate 64-bit
I have been running this gane using a recent git version and have run into problems with the money system. I realised I had problems when I could not buy the ornamental cathedral despite having 25 francs, I replayed the game with a walkthrough to check I had made no mistakes - same result. But I knew this game had been around a long time without complaint so I tried again with an earlier stable version 1.2.0 (random choice). This made me see that the git version no longer :
I am providing 3 savegames for each version of the program. The number in brackets is the number of francs you have at that point.
Having continued with the one franc (savegame 64 from 1.2.0) but using the git version instead, you still cannot buy the ornament.
I am including a savegame just before you buy the ornament, The old stable version allows you to buy it.
For now, I shall try to complete the game using the old version only
I'm suspecting 9d2cc7ce84107d93d56371e8266cbe2193a7923b.
Before that, KeyChar::inventoryItems used to have 4 items, but inventoryItems[4] was accessed in a money-related function. The variable KeyChar::money was stored right behind inventoryItems.
That commit changed the size of inventoryItems to 5, so removing this (accidental?) aliasing.
Thank you for the detailed bug report, by the way.
It looks like the asserts in the inventory access opcodes meant to prevent this are broken too.
As you might have expected, I did get to the end of the game with version 1.2.0.
But if you can sort the problem out, I am happy to test a new version (at least, the start up to buying the junk).
This should be fixed now.
Tested fix (up to and including buying the junk) - worked as it should
Thank you for verifying.