Pārlūkot izejas kodu

Boyscouting: Fix backwards ternary operator

Sandy Carter 10 gadi atpakaļ
vecāks
revīzija
a14711b3b4
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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
 	{