aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2010-02-28 19:08:40 +0100
committerXTZGZoReX <none@none>2010-02-28 19:08:40 +0100
commit2383c5b79e36f55ecf020fc1d2e1e33778faca29 (patch)
tree76f53c56a83862e44b7bb32bc0e8362898e9a749
parentac48523b142a57333f133f7949d727ff106ce383 (diff)
* Fix SMSG_TRANSFER_ABORTED. Don't modify packet structures unless you actually verify them...
--HG-- branch : trunk
-rw-r--r--src/game/Player.cpp5
-rw-r--r--src/game/Player.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 73fedb9d7fe..9c1001e28a8 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -20367,7 +20367,7 @@ void Player::SendUpdateToOutOfRangeGroupMembers()
pet->ResetAuraUpdateMaskForRaid();
}
-void Player::SendTransferAborted(uint32 mapid, uint8 reason, uint8 arg)
+void Player::SendTransferAborted(uint32 mapid, TransferAbortReason reason, uint8 arg)
{
WorldPacket data(SMSG_TRANSFER_ABORTED, 4+2);
data << uint32(mapid);
@@ -20377,8 +20377,7 @@ void Player::SendTransferAborted(uint32 mapid, uint8 reason, uint8 arg)
case TRANSFER_ABORT_INSUF_EXPAN_LVL:
case TRANSFER_ABORT_DIFFICULTY:
case TRANSFER_ABORT_UNIQUE_MESSAGE:
- case TRANSFER_ABORT_ZONE_IN_COMBAT:
- case TRANSFER_ABORT_MAX_PLAYERS:
+ // these are the ONLY cases that have an extra argument in the packet!!!
data << uint8(arg);
break;
}
diff --git a/src/game/Player.h b/src/game/Player.h
index e6f97770949..556b2dfe864 100644
--- a/src/game/Player.h
+++ b/src/game/Player.h
@@ -1026,7 +1026,7 @@ class Player : public Unit, public GridObject<Player>
void SendInitialPacketsBeforeAddToMap();
void SendInitialPacketsAfterAddToMap();
- void SendTransferAborted(uint32 mapid, uint8 reason, uint8 arg = 0);
+ void SendTransferAborted(uint32 mapid, TransferAbortReason reason, uint8 arg = 0);
void SendInstanceResetWarning(uint32 mapid, Difficulty difficulty, uint32 time);
Creature* GetNPCIfCanInteractWith(uint64 guid, uint32 npcflagmask);