Skip to content

Commit

Permalink
Merge pull request CleverRaven#76829 from Night-Pryanik/machete
Browse files Browse the repository at this point in the history
Fixed crash on trying to unwield heavy items when trying to drive
  • Loading branch information
Maleclypse authored Oct 6, 2024
2 parents 01c1561 + 4dec931 commit b65f3e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5577,8 +5577,7 @@ void game::control_vehicle()
} else {
return;
}
}
if( weapon->is_two_handed( u ) ) {
} else if( weapon->is_two_handed( u ) ) {
if( query_yn(
_( "You can't drive because you have to wield a %s with both hands.\n\nPut it away?" ),
weapon->tname() ) ) {
Expand Down

0 comments on commit b65f3e6

Please sign in to comment.