summaryrefslogtreecommitdiff
path: root/src/net/tmwa/specialhandler.cpp
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-04-27 22:18:27 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2011-04-27 22:18:27 +0200
commit3e50aa43e13ed0cd2f5bb937c46bd064bdbfeeff (patch)
tree82d2b4dc94d039460061d4d07b9367a95e4bec79 /src/net/tmwa/specialhandler.cpp
parentf824c159af0a67e6d68f0934b4810dffc1c33a91 (diff)
downloadmana-3e50aa43e13ed0cd2f5bb937c46bd064bdbfeeff.tar.gz
mana-3e50aa43e13ed0cd2f5bb937c46bd064bdbfeeff.tar.bz2
mana-3e50aa43e13ed0cd2f5bb937c46bd064bdbfeeff.tar.xz
mana-3e50aa43e13ed0cd2f5bb937c46bd064bdbfeeff.zip
Fixing crash when selecting a character that has a Dark Talisman equipped
This resolves http://bugs.manasource.org/view.php?id=330 Reviewed-by: Bertram
Diffstat (limited to 'src/net/tmwa/specialhandler.cpp')
-rw-r--r--src/net/tmwa/specialhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/specialhandler.cpp b/src/net/tmwa/specialhandler.cpp
index c5f5d540..bcf5ba44 100644
--- a/src/net/tmwa/specialhandler.cpp
+++ b/src/net/tmwa/specialhandler.cpp
@@ -107,7 +107,8 @@ void SpecialHandler::handleMessage(Net::MessageIn &msg)
player_node->setAttributeBase(skillId, level);
player_node->setAttributeEffective(skillId, level);
- skillDialog->setModifiable(skillId, up);
+ if (skillDialog)
+ skillDialog->setModifiable(skillId, up);
}
break;