diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-13 19:56:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-13 19:56:05 +0300 |
commit | 38873bb99dea8a8089f1056bc1b28a59ed1f83d3 (patch) | |
tree | 702b19cf37f846f8a777777b958122d2cb562359 /src/gui/windows/npcdialog.cpp | |
parent | c4d8fa788e0f89d73ba5ae2b66b79ad0351c5fbf (diff) | |
download | manaplus-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.gz manaplus-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.bz2 manaplus-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.tar.xz manaplus-38873bb99dea8a8089f1056bc1b28a59ed1f83d3.zip |
Move virtual methods from Being constructor to postInit.
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r-- | src/gui/windows/npcdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp index 453f35126..7b1cedfd2 100644 --- a/src/gui/windows/npcdialog.cpp +++ b/src/gui/windows/npcdialog.cpp @@ -1128,7 +1128,7 @@ void NpcDialog::showAvatar(const BeingTypeId avatarId) if (needShow) { delete mAvatarBeing; - mAvatarBeing = new Being(BeingId_zero, + mAvatarBeing = Being::createBeing(BeingId_zero, ActorType::Avatar, avatarId, nullptr); |