diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 17:28:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 17:28:24 +0300 |
commit | 0bea9cbee260faff6db5c4d440edfad78bdb6cf2 (patch) | |
tree | d17f211c84568ca1155fb70fc6f06ab2fbe4b37b | |
parent | e8f38bb21acdade340979f51871513845a3d8a4f (diff) | |
download | manaverse-0bea9cbee260faff6db5c4d440edfad78bdb6cf2.tar.gz manaverse-0bea9cbee260faff6db5c4d440edfad78bdb6cf2.tar.bz2 manaverse-0bea9cbee260faff6db5c4d440edfad78bdb6cf2.tar.xz manaverse-0bea9cbee260faff6db5c4d440edfad78bdb6cf2.zip |
Use CREATEWIDGET macro in being.
-rw-r--r-- | src/being/being.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 2fdbfe55a..d08d8d5e7 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -82,6 +82,7 @@ #include "resources/map/map.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/skilldata.h" #include "gui/widgets/skillinfo.h" @@ -313,8 +314,7 @@ Being::~Being() void Being::createSpeechBubble() { - mSpeechBubble = new SpeechBubble; - mSpeechBubble->postInit(); + CREATEWIDGET1(mSpeechBubble, SpeechBubble); } void Being::setSubtype(const BeingTypeId subtype, |