summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
+ }
}
}