Skip to content

Commit

Permalink
Fix load of desc_freq
Browse files Browse the repository at this point in the history
As above
  • Loading branch information
RedShakespeare committed May 6, 2020
1 parent 771188a commit 83c8dfb
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 83c8dfb

Please sign in to comment.