Skip to content

Commit 15885f5

Browse files
committed
Player: Fix crash due to bad copypasta
Lets not talk about this
1 parent 520d498 commit 15885f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/game/Entities/Player.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22384,7 +22384,7 @@ bool Player::SetStunnedByLogout(bool apply)
2238422384
else if (getStandState() == UNIT_STAND_STATE_SIT)
2238522385
SetStandState(UNIT_STAND_STATE_STAND);
2238622386

22387-
GetTarget()->ApplyModByteFlag(PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_FLAGS, PLAYER_FIELD_BYTE_LOGGING_OUT, apply);
22387+
ApplyModByteFlag(PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_FLAGS, PLAYER_FIELD_BYTE_LOGGING_OUT, apply);
2238822388
return true;
2238922389
}
2239022390
return false;
@@ -22393,5 +22393,5 @@ bool Player::SetStunnedByLogout(bool apply)
2239322393
void Player::SetPet(Unit* pet)
2239422394
{
2239522395
Unit::SetPet(pet);
22396-
GetTarget()->ApplyModByteFlag(PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_FLAGS, PLAYER_FIELD_BYTE_CONTROLLING_PET, pet != nullptr);
22396+
ApplyModByteFlag(PLAYER_FIELD_BYTES, PLAYER_FIELD_BYTES_OFFSET_FLAGS, PLAYER_FIELD_BYTE_CONTROLLING_PET, pet != nullptr);
2239722397
}

0 commit comments

Comments
 (0)