summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-11 23:55:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-11 23:55:06 +0300
commitcc11fec318db7293ac960e4ea6bc041d83bad253 (patch)
treef22ee4ce1861257bb2281192800c3ddc85b33c3c
parente9fccf3db2f44531e013d708a64550ebb6c4927a (diff)
downloadmv-cc11fec318db7293ac960e4ea6bc041d83bad253.tar.gz
mv-cc11fec318db7293ac960e4ea6bc041d83bad253.tar.bz2
mv-cc11fec318db7293ac960e4ea6bc041d83bad253.tar.xz
mv-cc11fec318db7293ac960e4ea6bc041d83bad253.zip
Add missing check in guild handler.
-rw-r--r--src/net/eathena/guildhandler.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp
index 270a69541..b39b87b75 100644
--- a/src/net/eathena/guildhandler.cpp
+++ b/src/net/eathena/guildhandler.cpp
@@ -211,8 +211,11 @@ void GuildHandler::processGuildUpdateCoords(Net::MessageIn &msg)
if (Ea::taGuild)
{
GuildMember *const m = Ea::taGuild->getMember(id);
- m->setX(x);
- m->setY(y);
+ if (m)
+ {
+ m->setX(x);
+ m->setY(y);
+ }
}
}