Cleanup in content_mapblock (#5746)
[oweals/minetest.git] / src / serverobject.h
index 9e8b5a779f6b798bf48cc8ed4592c512bfc8ddb3..38204980e439b57beda6722863a6d16d73166c97 100644 (file)
@@ -119,10 +119,10 @@ public:
                when it is created (converted from static to active - actually
                the data is the static form)
        */
-       virtual std::string getStaticData()
+       virtual void getStaticData(std::string *result) const
        {
                assert(isStaticAllowed());
-               return "";
+               *result = "";
        }
        /*
                Return false in here to never save and instead remove object