Update GuildMethods.h

This commit is contained in:
Rochet2
2017-03-15 12:35:07 +02:00
committed by GitHub
parent bcda7b78d8
commit c971ca6518

View File

@@ -38,7 +38,7 @@ namespace LuaGuild
{ {
if (Player* player = it->second) if (Player* player = it->second)
{ {
if (player->GetSession() && (player->GetGuildId() == guild->GetId())) if (player->IsInWorld() && player->GetGuildId() == guild->GetId())
{ {
++i; ++i;
Eluna::Push(L, i); Eluna::Push(L, i);