Consistent const string params
authorest31 <MTest31@outlook.com>
Wed, 27 May 2015 11:23:09 +0000 (13:23 +0200)
committerest31 <MTest31@outlook.com>
Wed, 27 May 2015 11:23:09 +0000 (13:23 +0200)
Parent commit broke behaviour.
Thanks @TeTpaAka for testing the fix.

src/serverobject.h

index 5c4d13e3b8b390fcf416e5c356153feb2ba297bd..a8ec325a67af88c232ff90bd153bc2d2d174481f 100644 (file)
@@ -151,9 +151,9 @@ public:
        {}
        virtual void setAnimation(v2f frames, float frame_speed, float frame_blend)
        {}
-       virtual void setBonePosition(std::string bone, v3f position, v3f rotation)
+       virtual void setBonePosition(const std::string &bone, v3f position, v3f rotation)
        {}
-       virtual void setAttachment(int parent_id, std::string bone, v3f position, v3f rotation)
+       virtual void setAttachment(int parent_id, const std::string &bone, v3f position, v3f rotation)
        {}
        virtual ObjectProperties* accessObjectProperties()
        { return NULL; }