aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods/legacy
diff options
context:
space:
mode:
authorJürgen Doser <jurgen.doser@gmail.com>2013-02-01 15:50:33 +0100
committerJürgen Doser <jurgen.doser@gmail.com>2013-02-01 15:50:33 +0100
commit9ebf1fd3b7aa84cad2824906c336ea678433a3f4 (patch)
tree96673c91e21305d20b5e8bac3684f99e7991529c /games/minimal/mods/legacy
parent12472a44d4ce1a35cad0b9ebe53550a7d44134d5 (diff)
downloadminetest-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 'games/minimal/mods/legacy')
0 files changed, 0 insertions, 0 deletions