Fixes crash in BattleGrounds.

This commit is contained in:
hondacrx
2017-08-13 11:10:18 -04:00
parent b494d51816
commit 6e7c77a174
8 changed files with 16 additions and 19 deletions
+1 -1
View File
@@ -1559,7 +1559,7 @@ namespace Game.BattleGrounds
public void SendMessage2ToAll(CypherStrings entry, ChatMsg type, Player source, CypherStrings arg1 = 0, CypherStrings arg2 = 0)
{
var bg_builder = new BattlegroundChatBuilder(type, entry, source, arg1, arg2);
var bg_builder = new Battleground2ChatBuilder(type, entry, source, arg1, arg2);
var bg_do = new LocalizedPacketDo(bg_builder);
BroadcastWorker(bg_do);
}
@@ -125,6 +125,7 @@ namespace Game.BattleGrounds
void BuildBattlegroundStatusHeader(ref BattlefieldStatusHeader header, Battleground bg, Player player, uint ticketId, uint joinTime, ArenaTypes arenaType)
{
header.Ticket = new RideTicket();
header.Ticket.RequesterGuid = player.GetGUID();
header.Ticket.Id = ticketId;
header.Ticket.Type = RideType.Battlegrounds;
-2
View File
@@ -567,10 +567,8 @@ namespace Game.BattleGrounds
m_PointState[i] = EotSPointState.Uncontrolled;
m_PointBarStatus[i] = EotSProgressBarConsts.ProgressBarStateMiddle;
m_PlayersNearPoint[i].Clear();
//m_PlayersNearPoint[i].reserve(15); //tip size
}
m_PlayersNearPoint[EotSPoints.PlayersOutOfPoints].Clear();
//m_PlayersNearPoint[EotSPoints.PlayersOutOfPoints].reserve(30);
}
void RespawnFlag(bool send_message)