Don't assign it in a loop. That's nonsense and a total waste of performance. Just place a
Code:
wait(1); on_esc = NULL;
in your main function. The wait(1); is required as on_esc is assigned in default.c in a starter function and starter functions are started after the main function. Not including the default.c will do as good.