Skip to content

Commit 041b737

Browse files
committed
xrPhysics: fix linkage virtal destructors for xrGame on Windows
1 parent 6ca8238 commit 041b737

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/xrPhysics/IClimableObject.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,9 @@ class IClimableObject
3939
virtual IPhysicsShellHolder* cast_IPhysicsShellHolder() = 0;
4040

4141
protected:
42+
#if defined(WINDOWS)
43+
virtual ~IClimableObject() = 0 {}
44+
#elif defined(LINUX)
4245
virtual ~IClimableObject() = 0;
46+
#endif
4347
};

src/xrPhysics/icollisiondamagereceiver.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ class ICollisionDamageReceiver
1313
virtual void CollisionHit(u16 source_id, u16 bone_id, float power, const Fvector& dir, Fvector& pos) = 0;
1414

1515
protected:
16+
#if defined(WINDOWS)
17+
virtual ~ICollisionDamageReceiver() = 0 {}
18+
#elif defined(LINUX)
1619
virtual ~ICollisionDamageReceiver() = 0;
20+
#endif
1721
};
1822

1923
struct dContact;

0 commit comments

Comments
 (0)