Skip to content

Commit

Permalink
Merge pull request #40253 from RedShakespeare/music_instrument
Browse files Browse the repository at this point in the history
Add previously missing json-loading of desc_freq in music instruments
  • Loading branch information
Rivet-the-Zombie authored May 8, 2020
2 parents 77b1f5f + 83c8dfb commit 1786e61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iuse_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2216,6 +2216,7 @@ void musical_instrument_actor::load( const JsonObject &obj )
volume = obj.get_int( "volume" );
fun = obj.get_int( "fun" );
fun_bonus = obj.get_int( "fun_bonus", 0 );
description_frequency = time_duration::from_turns( obj.get_int( "description_frequency", 0 ) );
if( !obj.read( "description_frequency", description_frequency ) ) {
obj.throw_error( "missing member \"description_frequency\"" );
}
Expand Down

0 comments on commit 1786e61

Please sign in to comment.