diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-21 13:01:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-21 13:01:00 +0300 |
commit | ba88670fe4b5f4606f80651f6433cc755ab6b6c1 (patch) | |
tree | b0f8c94e63385df3fafaf8dfe70cc3d0357146a4 /src/actormanager.cpp | |
parent | ebd21ed95b475d7a411bc6d341fb287b0c125509 (diff) | |
download | manaverse-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.tar.gz manaverse-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.tar.bz2 manaverse-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.tar.xz manaverse-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.zip |
Fix updating skills window if some skills was removed.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r-- | src/actormanager.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp index c025d9f44..7f4114c1c 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -818,7 +818,11 @@ void ActorManager::logic() if (actor->getId() == localPlayer->getMercenary()) { localPlayer->setMercenary(0); - skillDialog->hideSkills(SkillOwner::Mercenary); + if (skillDialog) + { + skillDialog->hideSkills(SkillOwner::Mercenary); + skillDialog->updateModels(); + } } } if (localPlayer) |