Skip to content

Commit

Permalink
Fix type cast warning
Browse files Browse the repository at this point in the history
  • Loading branch information
olanti-p authored and kevingranade committed Mar 1, 2020
1 parent adb3d75 commit 4c856f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mutation_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ void mutation_branch::load( const JsonObject &jo, const std::string & )

for( JsonArray ja : jo.get_array( "lumination" ) ) {
const body_part bp = get_body_part_token( ja.next_string() );
lumination.emplace( bp, ja.next_float() );
lumination.emplace( bp, static_cast<float>( ja.next_float() ) );
}

for( JsonArray ja : jo.get_array( "anger_relations" ) ) {
Expand Down

0 comments on commit 4c856f5

Please sign in to comment.