Skip to content

Commit

Permalink
Merge pull request #36078 from BevapDin/lyq
Browse files Browse the repository at this point in the history
Fix accessing member value instead of member name.
  • Loading branch information
ZhilkinSerg authored Dec 13, 2019
2 parents 83e37d6 + 8ce8680 commit 1a07e73
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 @@ -1736,7 +1736,7 @@ void inventory::json_load_invcache( JsonIn &jsin )
for( const int i : member.get_array() ) {
invlets.push_back( i );
}
map[member] = invlets;
map[member.name()] = invlets;
}
}
invlet_cache = { map };
Expand Down

0 comments on commit 1a07e73

Please sign in to comment.