From a8cce44e6da74a0713395ef47cf8e1b499b8013e Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 28 Jan 2020 23:45:50 +0100 Subject: [PATCH] Make destructor of base class virtual to avoid UB --- src/activity_actor.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/activity_actor.h b/src/activity_actor.h index 54d3434c8ea0..78a2405b68da 100644 --- a/src/activity_actor.h +++ b/src/activity_actor.h @@ -14,6 +14,8 @@ class player_activity; class activity_actor { public: + virtual ~activity_actor() = default; + /** * Should return the activity id of the corresponding activity */