Hi Drindilica, thanks for reporting this.
This is purely a visual bug - Gamemaker's interpreter automatically treats it as a comparison, not assignment. Feel free to change it if you like but it will function the same.
Thanks