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/compass.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/compass.h')
-rw-r--r-- | src/compass.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compass.h b/src/compass.h index 20f11c2..1eed3d6 100644 --- a/src/compass.h +++ b/src/compass.h @@ -31,7 +31,7 @@ class CCompass : public CControl {
public:
CCompass(CInstanceManager* iMan);
- ~CCompass();
+ virtual ~CCompass();
BOOL Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg);
|