const fix
This commit is contained in:
@@ -32,8 +32,8 @@ struct MenuInput
|
|||||||
PlayerNumber player;
|
PlayerNumber player;
|
||||||
MenuButton button;
|
MenuButton button;
|
||||||
|
|
||||||
bool operator==( const MenuInput &other ) { return player == other.player && button == other.button; };
|
bool operator==( const MenuInput &other ) const { return player == other.player && button == other.button; };
|
||||||
bool operator!=( const MenuInput &other ) { return !operator==(other); };
|
bool operator!=( const MenuInput &other ) const { return !operator==(other); };
|
||||||
|
|
||||||
inline bool IsValid() const { return player != PLAYER_INVALID; };
|
inline bool IsValid() const { return player != PLAYER_INVALID; };
|
||||||
inline void MakeInvalid() { player = PLAYER_INVALID; button = MenuButton_INVALID; };
|
inline void MakeInvalid() { player = PLAYER_INVALID; button = MenuButton_INVALID; };
|
||||||
|
|||||||
Reference in New Issue
Block a user