Browse Source

Boyscouting: Fix backwards ternary operator

Sandy Carter 10 years ago
parent
commit
a14711b3b4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client/widgets/Buttons.cpp

+ 2 - 2
client/widgets/Buttons.cpp

@@ -209,8 +209,8 @@ void CButton::hover (bool on)
 		setState(PRESSED);*/
 
 	std::string name = hoverTexts[getState()].empty()
-		? hoverTexts[getState()]
-		: hoverTexts[0];
+		? hoverTexts[0]
+		: hoverTexts[getState()];
 
 	if(!name.empty() && !isBlocked()) //if there is no name, there is nohing to display also
 	{