From 0a15728be441cf687ef93fd2ab8c38266adacd94 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 4 Dec 2002 07:58:51 +0000 Subject: [PATCH] simple change in initialization --- src/actions.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions.cc b/src/actions.cc index 6750cc58..d8162a50 100644 --- a/src/actions.cc +++ b/src/actions.cc @@ -15,8 +15,8 @@ const unsigned int OBActions::DOUBLECLICKDELAY = 300; OBActions::OBActions() : _button(0), _enter_win(0) { - _presses[0] = new MousePressAction(); - _presses[1] = new MousePressAction(); + for (int i = 0; i < 2; ++i) + _presses[i] = new MousePressAction(); // XXX: load a configuration out of somewhere -- 2.45.2