From: est31 Date: Wed, 27 May 2015 11:23:09 +0000 (+0200) Subject: Consistent const string params X-Git-Tag: 0.4.13~234 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=990a96578f20244626b6b9f67f8e79a7e2e614ea;p=oweals%2Fminetest.git Consistent const string params Parent commit broke behaviour. Thanks @TeTpaAka for testing the fix. --- diff --git a/src/serverobject.h b/src/serverobject.h index 5c4d13e3b..a8ec325a6 100644 --- a/src/serverobject.h +++ b/src/serverobject.h @@ -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; }