Skip to content

Commit 8506cbc

Browse files
committed
Fix invalid pure virtual function declaration
1 parent 5836b65 commit 8506cbc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/xrGame/attachable_item.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ bool CAttachableItem::can_be_attached() const
112112

113113
return (true);
114114
}
115+
115116
void CAttachableItem::afterAttach()
116117
{
117118
VERIFY(m_valid);
@@ -124,6 +125,11 @@ void CAttachableItem::afterDetach()
124125
object().processing_deactivate();
125126
}
126127

128+
virtual bool CAttachableItem::use_parent_ai_locations() const
129+
{
130+
return !enabled();
131+
}
132+
127133
#ifdef DEBUG
128134
float ATT_ITEM_MOVE_CURR = 0.01f;
129135
float ATT_ITEM_ROT_CURR = 0.1f;

src/xrGame/attachable_item.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class CAttachableItem
5454
virtual void enable(bool value);
5555

5656
protected:
57-
virtual bool use_parent_ai_locations() const = 0 { return !enabled(); }
57+
virtual bool use_parent_ai_locations() const = 0;
5858
public:
5959
#ifdef DEBUG
6060
static CAttachableItem* m_dbgItem;

0 commit comments

Comments
 (0)