Skip to content

Commit be1c006

Browse files
committed
Update src/npctalk.cpp
1 parent d4810f3 commit be1c006

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/npctalk.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3506,7 +3506,7 @@ talk_effect_fun_t::func f_add_trait( const JsonObject &jo, std::string_view memb
35063506
const auto &existing_types = existing->types;
35073507
for( const std::string &t : existing_types ) {
35083508
bool match = false;
3509-
if constexpr( std::is_same<decltype( new_types ), const std::set<std::string> &>::value ) {
3509+
if constexpr( std::is_same<decltype(new_types), const std::set<std::string> &>::value ) {
35103510
match = new_types.count( t ) > 0;
35113511
} else {
35123512
match = std::find( new_types.begin(), new_types.end(), t ) != new_types.end();
@@ -3515,6 +3515,8 @@ talk_effect_fun_t::func f_add_trait( const JsonObject &jo, std::string_view memb
35153515
guy->unset_mutation( existing );
35163516
break;
35173517
}
3518+
}
3519+
}
35183520

35193521
d.actor( is_npc )->set_mutation( trait, variant );
35203522
};

0 commit comments

Comments
 (0)