diff options
author | Beha <shacknetisp@mail.com> | 2019-08-01 11:11:43 -0400 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-08-01 18:14:37 +0200 |
commit | 1a97d06b5a86910d0038252ff089ce308f203e85 (patch) | |
tree | 3ff1bf56017194f74bce22cf0ad7e0c61d4b84e5 | |
parent | 3ceef8e6a00eea4593e9d89ed3d51ba484c4d927 (diff) | |
download | minetest-1a97d06b5a86910d0038252ff089ce308f203e85.tar.gz minetest-1a97d06b5a86910d0038252ff089ce308f203e85.tar.bz2 minetest-1a97d06b5a86910d0038252ff089ce308f203e85.zip |
Correct ServerActiveObject's virtual getArmorGroups() to be const.
Due to commit ec3142a , UnitSAO's getArmorGroups() did not match
ServerActiveObject's, notably resulting in the lua get_armor_groups() call
returning nothing.
-rw-r--r-- | src/serverobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serverobject.h b/src/serverobject.h index 42eed0710..08f7a7e58 100644 --- a/src/serverobject.h +++ b/src/serverobject.h @@ -147,7 +147,7 @@ public: virtual void setArmorGroups(const ItemGroupList &armor_groups) {} - virtual const ItemGroupList &getArmorGroups() + virtual const ItemGroupList &getArmorGroups() const { static ItemGroupList rv; return rv; } virtual void setPhysicsOverride(float physics_override_speed, float physics_override_jump, float physics_override_gravity) {} |