aboutsummaryrefslogtreecommitdiff
path: root/src/game/WorldSession.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-31 15:56:51 -0500
committermegamage <none@none>2009-05-31 15:56:51 -0500
commit5ed5513ca82712a6e3691add2c9a0f005d80426f (patch)
tree781e8589bb7f8e95e6b9126f7a555c2f0e1b03ca /src/game/WorldSession.cpp
parent19e12305515d958c5de586c2a409979b3d193ce6 (diff)
Mangos [7911]. Author: tomrus88
Very big patch. May cause bugs. --HG-- branch : trunk
Diffstat (limited to 'src/game/WorldSession.cpp')
-rw-r--r--src/game/WorldSession.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp
index 36342c8dee1..190bb9d3684 100644
--- a/src/game/WorldSession.cpp
+++ b/src/game/WorldSession.cpp
@@ -188,7 +188,7 @@ bool WorldSession::Update(uint32 /*diff*/)
(this->*opHandle.handler)(*packet);
// lag can cause STATUS_LOGGEDIN opcodes to arrive after the player started a transfer
break;
- case STATUS_TRANSFER_PENDING:
+ case STATUS_TRANSFER:
if(!_player)
logUnexpectedOpcode(packet, "the player has not logged in yet");
else if(_player->IsInWorld())
@@ -350,12 +350,12 @@ void WorldSession::LogoutPlayer(bool Save)
if(Save)
{
uint32 eslot;
- for(int j = BUYBACK_SLOT_START; j < BUYBACK_SLOT_END; j++)
+ for(int j = BUYBACK_SLOT_START; j < BUYBACK_SLOT_END; ++j)
{
eslot = j - BUYBACK_SLOT_START;
- _player->SetUInt64Value(PLAYER_FIELD_VENDORBUYBACK_SLOT_1+eslot*2,0);
- _player->SetUInt32Value(PLAYER_FIELD_BUYBACK_PRICE_1+eslot,0);
- _player->SetUInt32Value(PLAYER_FIELD_BUYBACK_TIMESTAMP_1+eslot,0);
+ _player->SetUInt64Value(PLAYER_FIELD_VENDORBUYBACK_SLOT_1 + (eslot * 2), 0);
+ _player->SetUInt32Value(PLAYER_FIELD_BUYBACK_PRICE_1 + eslot, 0);
+ _player->SetUInt32Value(PLAYER_FIELD_BUYBACK_TIMESTAMP_1 + eslot, 0);
}
_player->SaveToDB();
}