]> git.lizzy.rs Git - minetest.git/blobdiff - src/content_sao.cpp
Revert binary database block position encoding
[minetest.git] / src / content_sao.cpp
index 52b741365cfa18c16606d3d3a4cdb85b4b3389d7..095c6b5bf26c969f064e752fe815aa3d272df2aa 100644 (file)
@@ -191,7 +191,7 @@ class ItemSAO : public ServerActiveObject
        }
 
        ItemSAO(ServerEnvironment *env, v3f pos,
-                       const std::string itemstring):
+                       const std::string &itemstring):
                ServerActiveObject(env, pos),
                m_itemstring(itemstring),
                m_itemstring_changed(false),
@@ -350,7 +350,7 @@ class ItemSAO : public ServerActiveObject
 ItemSAO proto_ItemSAO(NULL, v3f(0,0,0), "");
 
 ServerActiveObject* createItemSAO(ServerEnvironment *env, v3f pos,
-               const std::string itemstring)
+                                  const std::string &itemstring)
 {
        return new ItemSAO(env, pos, itemstring);
 }