Eluna fix mangos wotlk build

This commit is contained in:
Rochet2
2014-04-07 02:35:29 +03:00
committed by Foereaper
parent 7ed94d3e7a
commit 16b6514589
7 changed files with 10 additions and 23 deletions

View File

@@ -1251,7 +1251,11 @@ namespace LuaUnit
return luaL_argerror(L, 3, "valid Language expected");
WorldPacket data;
#ifdef TRINITY
ChatHandler::BuildChatPacket(data, ChatMsg(type), Language(lang), unit, target, msg);
#else
ChatHandler::BuildChatPacket(data, ChatMsg(type), msg.c_str(), Language(lang), 0, unit->GET_GUID(), unit->GetName(), target->GET_GUID(), target->GetName());
#endif
target->GetSession()->SendPacket(&data);
return 0;
}