From bb0b3138b4c399592c5f16c29b10b27d7b087236 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 6 Mar 2006 17:52:33 +0000 Subject: [PATCH] const fix --- stepmania/src/MenuInput.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/MenuInput.h b/stepmania/src/MenuInput.h index 9d16a58b03..4fde8a1ff3 100644 --- a/stepmania/src/MenuInput.h +++ b/stepmania/src/MenuInput.h @@ -32,8 +32,8 @@ struct MenuInput PlayerNumber player; MenuButton button; - bool operator==( const MenuInput &other ) { return player == other.player && button == other.button; }; - bool operator!=( const MenuInput &other ) { return !operator==(other); }; + bool operator==( const MenuInput &other ) const { return player == other.player && button == other.button; }; + bool operator!=( const MenuInput &other ) const { return !operator==(other); }; inline bool IsValid() const { return player != PLAYER_INVALID; }; inline void MakeInvalid() { player = PLAYER_INVALID; button = MenuButton_INVALID; };