mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[10782] Use Team enum types in all appropriate cases and catches bug in result fix.
* Fixed wrong arenaid use at leave arena queue. * Fixed memory lost and etc at not virtual EndBattleground call * Fixed crash at arena join with fake data from client. * Code cleanups.
This commit is contained in:
parent
c2331f58bc
commit
cc0655a402
38 changed files with 315 additions and 321 deletions
|
|
@ -139,7 +139,7 @@ void WorldSession::HandleSendMail(WorldPacket & recv_data )
|
|||
|
||||
Player *receive = sObjectMgr.GetPlayer(rc);
|
||||
|
||||
uint32 rc_team = 0;
|
||||
Team rc_team;
|
||||
uint8 mails_count = 0; // do not allow to send to one player more than 100 mails
|
||||
|
||||
if (receive)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue