aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/dialogs.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/dialogs.h')
-rw-r--r--engines/mads/dialogs.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/mads/dialogs.h b/engines/mads/dialogs.h
index a915ed3452..0f9a098ee1 100644
--- a/engines/mads/dialogs.h
+++ b/engines/mads/dialogs.h
@@ -67,7 +67,7 @@ public:
/**
* Destructor
*/
- ~Dialog();
+ virtual ~Dialog();
};
enum {
@@ -145,7 +145,7 @@ public:
/**
* Destructor
*/
- ~TextDialog();
+ virtual ~TextDialog();
/**
* Draw the dialog
@@ -162,6 +162,8 @@ class MessageDialog: protected TextDialog {
public:
MessageDialog(MADSEngine *vm, int lines, ...);
+ virtual ~MessageDialog() {}
+
/**
* Show the dialog, and wait until a key or mouse press.
*/
@@ -184,6 +186,8 @@ public:
Common::Point _defaultPosition;
DialogId _pendingDialog;
+ virtual ~Dialogs() {}
+
virtual void showDialog() = 0;
};