Skip to content

Commit

Permalink
Make destructor of base class virtual to avoid UB
Browse files Browse the repository at this point in the history
  • Loading branch information
ifreund committed Apr 3, 2020
1 parent 16a44a0 commit a8cce44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/activity_actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class player_activity;
class activity_actor
{
public:
virtual ~activity_actor() = default;

/**
* Should return the activity id of the corresponding activity
*/
Expand Down

0 comments on commit a8cce44

Please sign in to comment.