Skip to content

Commit

Permalink
Please clang more
Browse files Browse the repository at this point in the history
  • Loading branch information
GuardianDll authored Nov 4, 2024
1 parent c48df0b commit 0b689c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/savegame_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2819,7 +2819,7 @@ void item::io( Archive &archive )
const std::string prefix = "npctalk_var_";
for( auto i = item_vars.begin(); i != item_vars.end(); ) {
if( i->first.rfind( prefix, 0 ) == 0 ) {
std::string extracted = ( *item_vars ).extract( i++ );
std::map<std::string, std::string>::node_type extracted = ( *item_vars ).extract( i++ );
std::string new_key = extracted.key().substr( prefix.size() );
extracted.key() = new_key;
item_vars.insert( std::move( extracted ) );
Expand Down

0 comments on commit 0b689c5

Please sign in to comment.