Skip to content

Commit

Permalink
Merge pull request #71001 from inogenous/fix-uninitialized-qual-gcc13
Browse files Browse the repository at this point in the history
Fix: Prevent uninitialized int
  • Loading branch information
inogenous authored and kevingranade committed May 26, 2024
1 parent 461a43f commit 97a82de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/activity_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ void hacksaw_activity_actor::start( player_activity &act, Character &/*who*/ )
return;
}

int qual;
int qual = 0;
if( type.has_value() ) {
item veh_tool = item( type.value(), calendar::turn );
for( const std::pair<const quality_id, int> &quality : type.value()->qualities ) {
Expand Down

0 comments on commit 97a82de

Please sign in to comment.