From c971ca6518613dde42a7d341cf5e3664d8616cf7 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Wed, 15 Mar 2017 12:35:07 +0200 Subject: [PATCH] Update GuildMethods.h --- GuildMethods.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GuildMethods.h b/GuildMethods.h index aa26228..27d0d3b 100644 --- a/GuildMethods.h +++ b/GuildMethods.h @@ -38,7 +38,7 @@ namespace LuaGuild { if (Player* player = it->second) { - if (player->GetSession() && (player->GetGuildId() == guild->GetId())) + if (player->IsInWorld() && player->GetGuildId() == guild->GetId()) { ++i; Eluna::Push(L, i);