Skip to content
Snippets Groups Projects
Commit 45035768 authored by noec's avatar noec
Browse files

fixed small typo in player.cpp

parent d0a85f25
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ void player::setup_round(std::string& err) {
// based on how many points the dealer has, chooses to call won_round, lost_round or draw round
void player::wrap_up_round(int dealer_points, std::string& err) {
int player_points = _player_hand->get_points(err);
if(player_points > 21 || (player_points < dealer_points && dealer <= 21)){
if(player_points > 21 || (player_points < dealer_points && dealer_points <= 21)){
this->lost_round();
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment