X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fobject_properties.cpp;h=e330bc24a0dffb8ac75a7614a8c063aef2c8d32b;hb=12d1e4ff0486f86ae20051daa1135dc7db366023;hp=af442806b11749267b972e1aed61911236c040b8;hpb=4faaadc8d50d6ab7a19d22bd5a760c4b8321a51f;p=minetest.git diff --git a/src/object_properties.cpp b/src/object_properties.cpp index af442806b..e330bc24a 100644 --- a/src/object_properties.cpp +++ b/src/object_properties.cpp @@ -26,56 +26,67 @@ with this program; if not, write to the Free Software Foundation, Inc., ObjectProperties::ObjectProperties() { - textures.push_back("unknown_object.png"); - colors.push_back(video::SColor(255,255,255,255)); + textures.emplace_back("unknown_object.png"); + colors.emplace_back(255,255,255,255); } std::string ObjectProperties::dump() { std::ostringstream os(std::ios::binary); - os<<"hp_max="<