From 657614d11a6ff97f000278f07954cb753719fcdf Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 26 Aug 2002 06:39:51 +0000 Subject: [PATCH] Use initializer lists; faster. --- stepmania/src/GameInput.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/GameInput.h b/stepmania/src/GameInput.h index 1cd431f462..c4a17bb64b 100644 --- a/stepmania/src/GameInput.h +++ b/stepmania/src/GameInput.h @@ -78,8 +78,9 @@ const GameButton GAME_BUTTON_INVALID = MAX_GAME_BUTTONS+1; struct GameInput { - GameInput() { MakeInvalid(); }; - GameInput( GameController c, GameButton b ) { controller = c; button = b; }; + GameInput(): controller(GAME_CONTROLLER_INVALID), button(GAME_BUTTON_INVALID) { } + + GameInput( GameController c, GameButton b ): controller(c), button(b) { } GameController controller; GameButton button;