mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
made the Avatar destructor virtual to ensure that MyAvatar and OtherAvatar cleanup correctly
This commit is contained in:
parent
1804422df0
commit
99ff5f9140
3 changed files with 3 additions and 3 deletions
|
@ -250,7 +250,7 @@ public:
|
|||
Q_ENUM(DriveKeys)
|
||||
|
||||
explicit MyAvatar(QThread* thread);
|
||||
~MyAvatar();
|
||||
~MyAvatar() override;
|
||||
|
||||
void instantiableAvatar() override {};
|
||||
void registerMetaTypes(ScriptEnginePointer engine);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
class OtherAvatar : public Avatar {
|
||||
public:
|
||||
explicit OtherAvatar(QThread* thread);
|
||||
~OtherAvatar();
|
||||
~OtherAvatar() override;
|
||||
|
||||
virtual void instantiableAvatar() override { };
|
||||
void createOrb() override;
|
||||
|
|
|
@ -67,7 +67,7 @@ public:
|
|||
static void setShowNamesAboveHeads(bool show);
|
||||
|
||||
explicit Avatar(QThread* thread);
|
||||
~Avatar();
|
||||
virtual ~Avatar();
|
||||
|
||||
virtual void instantiableAvatar() = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue