Kansas game is sometimes crashing due to a missing function
Hello. I've been playing various Aisleriot games recently and I've noticed there's a bug in the Kansas game. Specifically, once you get quite far in the game, there's a fair chance to get a scheme error message. This has been frequently happening while I was playing the game over and over again when analyzing the issue, and in some cases it prevented me from winning.
After finding out where the crash files are, analyzing them and then the code for the game itself, I've noticed something strange. It seems like one of the functions which is called in the game does not exist there and is instead called from leftover previous game functions (in the dump file I've attached, it's Diamond Mine).
The function is called find-card and is mentioned twice: https://gitlab.gnome.org/GNOME/aisleriot/-/blob/master/games/kansas.scm#L258 https://gitlab.gnome.org/GNOME/aisleriot/-/blob/master/games/kansas.scm#L277
I think the solution is pretty obvious :P I'm not sure however if it did exist before (didn't bother checking), or it can be just copied from some other game such as Klondike and because the functions aren't cleared when loading another game the game has been working fine and the bug has remained unspotted.
The version I'm using is the one bundled in Ubuntu 20.04, that is 3.22.9. I know it's a bit outdated, though that particular game hasn't been updated in a while, and the issue looks to be still present in the up-to-date code.
The aforementioned crashdump file: arcrash8DNTV1
And as a bonus, another crashdump from Westhaven... it seems like both games have the same problem, however that needs to be checked as well
I hope this issue gets resolved quickly, if any further information is needed I'd be glad to provide it!