diff --git a/nuklear_console.hpp b/nuklear_console.hpp index cf11cd9..71011bc 100644 --- a/nuklear_console.hpp +++ b/nuklear_console.hpp @@ -36,7 +36,7 @@ void nk_console_button_set_onclick_handler(nk_console* button, T&& t) { template nk_console* nk_console_button_onclick_handler(nk_console* parent, const char* text, T&& t) { nk_console* button = nk_console_button(parent, text); - nk_console_add_event(button, NK_CONSOLE_EVENT_CLICKED, std::move(t)) + nk_console_add_event(button, NK_CONSOLE_EVENT_CLICKED, std::move(t)); return button; }