diff options
author | Jürgen Doser <jurgen.doser@gmail.com> | 2013-02-01 15:50:33 +0100 |
---|---|---|
committer | Jürgen Doser <jurgen.doser@gmail.com> | 2013-02-01 15:50:33 +0100 |
commit | 9ebf1fd3b7aa84cad2824906c336ea678433a3f4 (patch) | |
tree | 96673c91e21305d20b5e8bac3684f99e7991529c /src/modifiedstate.h | |
parent | 12472a44d4ce1a35cad0b9ebe53550a7d44134d5 (diff) | |
download | minetest-9ebf1fd3b7aa84cad2824906c336ea678433a3f4.tar.gz minetest-9ebf1fd3b7aa84cad2824906c336ea678433a3f4.tar.bz2 minetest-9ebf1fd3b7aa84cad2824906c336ea678433a3f4.zip |
Remove use of operator[] on a std::map, so no spurious elements get inserted. (fixes #464)
All uses of operator[] in guiConfigureWorld.cpp have been replaced
with .find() operations.
In some places, operator[] had been called with mod names of "Add-Ons"
or "N/A", which would insert a default-constructed ModSpec into the
list of add-on mods. In other places, the use of operator[] was safe
now, but it probably is safer for future changes to use .find()
everywhere.
Diffstat (limited to 'src/modifiedstate.h')
0 files changed, 0 insertions, 0 deletions