Skip to content

Commit

Permalink
please clang
Browse files Browse the repository at this point in the history
  • Loading branch information
GuardianDll committed Nov 9, 2024
1 parent 45d09bf commit 38d0e7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/magic_enchantment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ bool string_id<enchantment>::is_valid() const

template<typename TKey>
void load_add_and_multiply( const JsonObject &jo, const bool &is_child,
const std::string &array_key, const std::string &type_key, std::map<TKey, dbl_or_var> &add_map,
const std::string_view array_key, const std::string &type_key, std::map<TKey, dbl_or_var> &add_map,
std::map<TKey, dbl_or_var> &mult_map )
{
if( !is_child && jo.has_array( array_key ) ) {
for( const JsonObject &value_obj : jo.get_array( array_key ) ) {
for( const JsonObject value_obj : jo.get_array( array_key ) ) {

TKey value;
mandatory( value_obj, false, type_key, value );
Expand Down

0 comments on commit 38d0e7d

Please sign in to comment.