summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-21 13:01:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-21 13:01:00 +0300
commitba88670fe4b5f4606f80651f6433cc755ab6b6c1 (patch)
treeb0f8c94e63385df3fafaf8dfe70cc3d0357146a4 /src/actormanager.cpp
parentebd21ed95b475d7a411bc6d341fb287b0c125509 (diff)
downloadmv-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.tar.gz
mv-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.tar.bz2
mv-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.tar.xz
mv-ba88670fe4b5f4606f80651f6433cc755ab6b6c1.zip
Fix updating skills window if some skills was removed.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp6
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)