From cc11fec318db7293ac960e4ea6bc041d83bad253 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Dec 2014 23:55:06 +0300 Subject: Add missing check in guild handler. --- src/net/eathena/guildhandler.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/net') 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); + } } } -- cgit v1.2.3-70-g09d2