Eluna fix mangos build

This commit is contained in:
Rochet2
2014-06-02 01:45:28 +03:00
committed by Foereaper
parent b1f85bfc21
commit 19b03dcbcf
10 changed files with 112 additions and 91 deletions

View File

@@ -16,7 +16,7 @@ namespace LuaGuild
int tbl = lua_gettop(L);
uint32 i = 0;
SessionMap const& sessions = sWorld->GetAllSessions();
SessionMap const& sessions = eWorld->GetAllSessions();
for (SessionMap::const_iterator it = sessions.begin(); it != sessions.end(); ++it)
{
if (Player* player = it->second->GetPlayer())
@@ -44,9 +44,9 @@ namespace LuaGuild
int GetLeader(lua_State* L, Guild* guild)
{
#ifdef MANGOS
Eluna::Push(L, sObjectAccessor->FindPlayer(guild->GetLeaderGuid()));
Eluna::Push(L, eObjectAccessor->FindPlayer(guild->GetLeaderGuid()));
#else
Eluna::Push(L, sObjectAccessor->FindPlayer(guild->GetLeaderGUID()));
Eluna::Push(L, eObjectAccessor->FindPlayer(guild->GetLeaderGUID()));
#endif
return 1;
}