Skip to content

Commit

Permalink
[GameInfo] Fix some [-Wmaybe-uninitialized] warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Benni committed Mar 8, 2024
1 parent b48c19a commit 9309b12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gameinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ int GameInfo::evalCard(Card *card, GameInfo *gameinfo)

switch( gameinfo->mode() )
{
default:
case GameInfo::RAMSCH:
case GameInfo::RUFSPIEL:
trumpf_cnt=2;
Expand Down Expand Up @@ -274,8 +275,6 @@ int GameInfo::evalCard(Card *card, GameInfo *gameinfo)
l_cards=l_cards_dachs;
col=Card::NOCOLOR;
break;
default:
break;
}
if(col==Card::NOCOLOR)
col=Card::EICHEL;
Expand Down

0 comments on commit 9309b12

Please sign in to comment.