diff --git a/include/blt/window/window.h b/include/blt/window/window.h index 9199fe1..101b0a4 100644 --- a/include/blt/window/window.h +++ b/include/blt/window/window.h @@ -50,7 +50,7 @@ class window { virtual inline void closeWindow(){ m_windowOpen = false; } - virtual inline void registerLoopFunction(std::function func) { + virtual inline void registerLoopFunction(const std::function& func) { renderFunctions.push_back(func); }