Jelajahi Sumber

Boyscouting: Fix backwards ternary operator

Sandy Carter 10 tahun lalu
induk
melakukan
a14711b3b4
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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
 	{