From 1a97d06b5a86910d0038252ff089ce308f203e85 Mon Sep 17 00:00:00 2001 From: Beha Date: Thu, 1 Aug 2019 11:11:43 -0400 Subject: [PATCH] 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. --- src/serverobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {}