diff --git a/src/serverobject.h b/src/serverobject.h index 04d52425..c20ec07e 100644 --- a/src/serverobject.h +++ b/src/serverobject.h @@ -148,7 +148,7 @@ public: virtual void setArmorGroups(const ItemGroupList &armor_groups) {} virtual const ItemGroupList &getArmorGroups() - { static const ItemGroupList rv; return rv; } + { static ItemGroupList rv; return rv; } virtual void setPhysicsOverride(float physics_override_speed, float physics_override_jump, float physics_override_gravity) {} virtual void setAnimation(v2f frames, float frame_speed, float frame_blend, bool frame_loop) @@ -172,7 +172,7 @@ public: virtual void removeAttachmentChild(int child_id) {} virtual const std::unordered_set &getAttachmentChildIds() - { static const std::unordered_set rv; return rv; } + { static std::unordered_set rv; return rv; } virtual ServerActiveObject *getParent() const { return nullptr; } virtual ObjectProperties* accessObjectProperties() { return NULL; }