const fix

This commit is contained in:
Chris Danford
2006-03-06 17:52:33 +00:00
parent 187d8196fb
commit bb0b3138b4
+2 -2
View File
@@ -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; };