Fix TC build

This commit is contained in:
Rochet2
2017-04-29 20:47:52 +03:00
parent ef0b1387dd
commit 839d3df8f6
2 changed files with 9 additions and 1 deletions

View File

@@ -2222,7 +2222,7 @@ namespace LuaPlayer
#ifndef TRINITY
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit);
#else
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit->getFaction());
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit->GetFaction());
#endif
if (!ahEntry)
return 0;

View File

@@ -1146,7 +1146,11 @@ namespace LuaUnit
*/
int GetFaction(lua_State* L, Unit* unit)
{
#ifdef TRINITY
Eluna::Push(L, unit->GetFaction());
#else
Eluna::Push(L, unit->getFaction());
#endif
return 1;
}
@@ -1476,7 +1480,11 @@ namespace LuaUnit
int SetFaction(lua_State* L, Unit* unit)
{
uint32 factionId = Eluna::CHECKVAL<uint32>(L, 2);
#ifdef TRINITY
unit->SetFaction(factionId);
#else
unit->setFaction(factionId);
#endif
return 0;
}