Skip to content

Commit

Permalink
xrPhysics: fix linkage virtal destructors for xrGame on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Jun 6, 2018
1 parent 6ca8238 commit 041b737
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xrPhysics/IClimableObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ class IClimableObject
virtual IPhysicsShellHolder* cast_IPhysicsShellHolder() = 0;

protected:
#if defined(WINDOWS)
virtual ~IClimableObject() = 0 {}
#elif defined(LINUX)
virtual ~IClimableObject() = 0;
#endif
};
4 changes: 4 additions & 0 deletions src/xrPhysics/icollisiondamagereceiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ class ICollisionDamageReceiver
virtual void CollisionHit(u16 source_id, u16 bone_id, float power, const Fvector& dir, Fvector& pos) = 0;

protected:
#if defined(WINDOWS)
virtual ~ICollisionDamageReceiver() = 0 {}
#elif defined(LINUX)
virtual ~ICollisionDamageReceiver() = 0;
#endif
};

struct dContact;
Expand Down

0 comments on commit 041b737

Please sign in to comment.