]> git.lizzy.rs Git - minetest.git/blobdiff - src/nameidmapping.cpp
Use single box for halo mesh
[minetest.git] / src / nameidmapping.cpp
index bcddb45151406f9a1fd3f569eec6eba4f3d93433..ed59ddd16848b7c0a7db53d198c797562b14752a 100644 (file)
@@ -18,6 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 */
 
 #include "nameidmapping.h"
+#include "exceptions.h"
 #include "util/serialize.h"
 
 void NameIdMapping::serialize(std::ostream &os) const
@@ -26,7 +27,7 @@ void NameIdMapping::serialize(std::ostream &os) const
        writeU16(os, m_id_to_name.size());
        for(std::map<u16, std::string>::const_iterator
                        i = m_id_to_name.begin();
-                       i != m_id_to_name.end(); i++){
+                       i != m_id_to_name.end(); ++i){
                writeU16(os, i->first);
                os<<serializeString(i->second);
        }