diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-03-23 21:19:34 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-03-23 21:19:34 +0100 |
commit | 39f32f2a1487ab7362b366a8851757c8151696bc (patch) | |
tree | 2ded5579f5f28d1b4f9468c4c7b59ffbb164451b /src/button.h | |
parent | 57a51c7a29734afdc9d0439ed62d73ac927a03ba (diff) | |
download | colobot-39f32f2a1487ab7362b366a8851757c8151696bc.tar.gz colobot-39f32f2a1487ab7362b366a8851757c8151696bc.tar.bz2 colobot-39f32f2a1487ab7362b366a8851757c8151696bc.zip |
Fixes for CControl derived classes
CControl has a virtual destructor and constructor without
side effects, so problem of double calls can be fixed
(unlike issue #8)
Diffstat (limited to 'src/button.h')
-rw-r--r-- | src/button.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/button.h b/src/button.h index 1b50682..2d30eea 100644 --- a/src/button.h +++ b/src/button.h @@ -31,7 +31,7 @@ class CButton : public CControl {
public:
CButton(CInstanceManager* iMan);
- ~CButton();
+ virtual ~CButton();
BOOL Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg);
|