Skip to content

Commit a5671b5

Browse files
authored
Update src/npctalk.cpp
1 parent d9400fb commit a5671b5

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
@@ -3518,7 +3518,7 @@ talk_effect_fun_t::func f_add_trait( const JsonObject &jo, std::string_view memb
35183518
const auto &existing_types = existing->types;
35193519
for( const std::string &t : existing_types ) {
35203520
bool match = false;
3521-
if constexpr( std::is_same<decltype( new_types ), const std::set<std::string> &>::value ) {
3521+
if constexpr( std::is_same<decltype(new_types), const std::set<std::string> &>::value ) {
35223522
match = new_types.count( t ) > 0;
35233523
} else {
35243524
match = std::find( new_types.begin(), new_types.end(), t ) != new_types.end();
@@ -3527,6 +3527,8 @@ talk_effect_fun_t::func f_add_trait( const JsonObject &jo, std::string_view memb
35273527
guy->unset_mutation( existing );
35283528
break;
35293529
}
3530+
}
3531+
}
35303532

35313533
d.actor( is_npc )->set_mutation( trait, variant );
35323534
};

0 commit comments

Comments
 (0)