]> git.lizzy.rs Git - minetest.git/blobdiff - src/serverobject.h
Prevent SIGFPE on entity tile loading issue. (#5178)
[minetest.git] / src / serverobject.h
index 9e8b5a779f6b798bf48cc8ed4592c512bfc8ddb3..38204980e439b57beda6722863a6d16d73166c97 100644 (file)
@@ -119,10 +119,10 @@ class ServerActiveObject : public ActiveObject
                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