Prevent creation of orphan Timer

This commit is contained in:
Leroy Hopson 2024-02-18 13:48:10 +13:00
parent 2b5ea392bf
commit 0ccc539f36
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -160,7 +160,7 @@ namespace godot
enum SelectionMode { NONE, POINTER };
bool selecting = false;
SelectionMode selection_mode = SelectionMode::NONE;
Timer *selection_timer = new Timer();
Timer *selection_timer;
void _handle_selection(Ref<InputEventMouse> event);
void _on_selection_held();
};