Remove corpse methods (report if needing them) and made changes to objectaccessor required by TC

See 402a3c45ff for more
This commit is contained in:
Rochet2
2015-09-30 22:00:53 +03:00
parent 64a442a887
commit 28161fa2fc
6 changed files with 14 additions and 69 deletions

View File

@@ -29,7 +29,7 @@ namespace LuaGuild
#else
HashMapHolder<Player>::ReadGuard g(HashMapHolder<Player>::GetLock());
#endif
const HashMapHolder<Player>::MapType& m = eObjectAccessor->GetPlayers();
const HashMapHolder<Player>::MapType& m = eObjectAccessor()GetPlayers();
for (HashMapHolder<Player>::MapType::const_iterator it = m.begin(); it != m.end(); ++it)
{
if (Player* player = it->second)
@@ -68,9 +68,9 @@ namespace LuaGuild
int GetLeader(Eluna* /*E*/, lua_State* L, Guild* guild)
{
#ifndef TRINITY
Eluna::Push(L, eObjectAccessor->FindPlayer(guild->GetLeaderGuid()));
Eluna::Push(L, eObjectAccessor()FindPlayer(guild->GetLeaderGuid()));
#else
Eluna::Push(L, eObjectAccessor->FindPlayer(guild->GetLeaderGUID()));
Eluna::Push(L, eObjectAccessor()FindPlayer(guild->GetLeaderGUID()));
#endif
return 1;
}