diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-11 23:55:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-11 23:55:06 +0300 |
commit | cc11fec318db7293ac960e4ea6bc041d83bad253 (patch) | |
tree | f22ee4ce1861257bb2281192800c3ddc85b33c3c /src | |
parent | e9fccf3db2f44531e013d708a64550ebb6c4927a (diff) | |
download | mv-cc11fec318db7293ac960e4ea6bc041d83bad253.tar.gz mv-cc11fec318db7293ac960e4ea6bc041d83bad253.tar.bz2 mv-cc11fec318db7293ac960e4ea6bc041d83bad253.tar.xz mv-cc11fec318db7293ac960e4ea6bc041d83bad253.zip |
Add missing check in guild handler.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/guildhandler.cpp | 7 |
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); + } } } |