Thanks for the quick response. How can I edit the code? Can I put it in Notepad and then save it? I tried that and it didn't work.
I don't know why it's not working for you.
This is a file that has the bug fix included, you can try it. It has some other changes which I've done to it as well.
NOTE: Don't regard this as some sort of official release!
EDIT: REMOVED THE FILE
DISCLAIMER
I like messing around with and modifying the game code. Obviously, this tends to introduce bugs. I just know that the changes I've made in this file would have introduced a lot of new bugs...
When I released my mod back in 2021, before it became official as version 3.1 bugfix, I thought I had squashed all the bugs too. When I fixed the reported bugs and updated the release to 3.2 at the end of 2022, I thought that was the end of it too.
I have the utmost respect for Faldir and I don't know what possessed me to release a mod wherein I had rewritten most of the code in the first place!
![Face palm :FacePalm: :FacePalm:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)