File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1978,7 +1978,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
19781978 switch (id) {
19791979 case LISTBOX_LOG : {
19801980 int sel = mainGame->lstLog ->getSelected ();
1981- if (sel != - 1 && (int )mainGame->logParam .size () >= sel && mainGame->logParam [sel]) {
1981+ if (sel >= 0 && (int )mainGame->logParam .size () > sel && mainGame->logParam [sel] > 0 ) {
19821982 mainGame->ShowCardInfo (mainGame->logParam [sel]);
19831983 }
19841984 return true ;
@@ -1991,7 +1991,7 @@ bool ClientField::OnCommonEvent(const irr::SEvent& event) {
19911991 switch (id) {
19921992 case LISTBOX_LOG : {
19931993 int sel = mainGame->lstLog ->getSelected ();
1994- if (sel != - 1 && (int )mainGame->logParam .size () >= sel && mainGame->logParam [sel]) {
1994+ if (sel >= 0 && (int )mainGame->logParam .size () > sel && mainGame->logParam [sel] > 0 ) {
19951995 mainGame->wInfos ->setActiveTab (0 );
19961996 }
19971997 return true ;
You can’t perform that action at this time.
0 commit comments