aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/serverobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serverobject.h b/src/serverobject.h
index 04d52425d..c20ec07e7 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<int> &getAttachmentChildIds()
- { static const std::unordered_set<int> rv; return rv; }
+ { static std::unordered_set<int> rv; return rv; }
virtual ServerActiveObject *getParent() const { return nullptr; }
virtual ObjectProperties* accessObjectProperties()
{ return NULL; }