About the origin of the bug, I'm afraid I'm not skilled enough... yet.
By the way, since I'd like to improve my skills, may I ask you if you use a sort of IDE to debug .rpy files?
I mean: I'm spoiled by C# in Visual Studio. There if I want to change a variable name I just right click it, select "Refactor" and Visual Studio does the refactoring without messing up with strings that happen to contain the variable name as a substring etc.
I can set breakpoints, and follow step by step...
If i click on a function it navigates me to its definition...
etc.
Is there someting similar for .rpy files?
Because right now I just open them in Atom which has the visual aid of syntax highlight, but the only find and replace are string based.
---
In short: any suggestion for a noob wannabe less-noob?
Thanks in advance