Skip to content
Browse files

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.
  • Loading branch information
shacknetisp authored and sfan5 committed Aug 1, 2019
1 parent 3ceef8e commit 1a97d06b5a86910d0038252ff089ce308f203e85
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/serverobject.h
@@ -147,7 +147,7 @@ class ServerActiveObject : public ActiveObject

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)

0 comments on commit 1a97d06

Please sign in to comment.