summaryrefslogtreecommitdiff
path: root/src/net
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 /src/net
parente9fccf3db2f44531e013d708a64550ebb6c4927a (diff)
downloadplus-cc11fec318db7293ac960e4ea6bc041d83bad253.tar.gz
plus-cc11fec318db7293ac960e4ea6bc041d83bad253.tar.bz2
plus-cc11fec318db7293ac960e4ea6bc041d83bad253.tar.xz
plus-cc11fec318db7293ac960e4ea6bc041d83bad253.zip
Add missing check in guild handler.
Diffstat (limited to 'src/net')
-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);
+ }
}
}