Skip to content

Commit

Permalink
Merge branch 'spring-refactor' into test-release
Browse files Browse the repository at this point in the history
  • Loading branch information
joveeater committed May 26, 2023
2 parents cb6e199 + fc8daca commit 61eda13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3069,6 +3069,8 @@ units::mass Character::weight_carried_reduced_by( const excluded_stacks &without
weaponweight = weapon->weight();
} else if( subtract_count > 1 ) {
debugmsg( "Trying to remove more than one wielded item" );
} else {
subtract_count = 0;
}
}
// Exclude wielded item if using lifting tool
Expand Down
2 changes: 1 addition & 1 deletion src/player_activity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ void player_activity::do_turn( player &p )
}
}
}
if( !*this ) {
if( !p.activity ) {
// Make sure data of previous activity is cleared
p.activity = std::make_unique<player_activity>();
p.resume_backlog_activity();
Expand Down

0 comments on commit 61eda13

Please sign in to comment.