summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/modeHelper.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/modeHelper.hpp b/ui/modeHelper.hpp
index 508beed..77707f2 100644
--- a/ui/modeHelper.hpp
+++ b/ui/modeHelper.hpp
@@ -6,6 +6,8 @@ union SDL_Event;
enum ModeSecondClick { Unset, Reset, NoAction };
template<typename Target, ModeSecondClick msc = ModeSecondClick::Unset> class Mode {
public:
+ explicit Mode(Target & t) : target {t} { }
+
Target & target;
template<typename Mode, typename... Params>