79737739

Date: 2025-08-17 09:19:30
Score: 2
Natty:
Report link

I got an answer from the Godot forum (thanks hexgrid!). It turns out the program is trying to evaluate the comparison before it evaluates undo_queue.size(), so making it a little wordier as such:

var slots = undo_queue.size()
if slots > QUEUE_LIMIT:
    ...
    ...

fixed the issue.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Joey Electric