diff --git a/src/game/Player.cpp b/src/game/Player.cpp index f178bb3c7..c871be8d7 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -8830,7 +8830,7 @@ bool Player::IsBagPos( uint16 pos ) return false; } -bool Player::IsValidPos( uint8 bag, uint8 slot, bool explicit_pos ) +bool Player::IsValidPos( uint8 bag, uint8 slot, bool explicit_pos ) const { // post selected if(bag == NULL_BAG && !explicit_pos) diff --git a/src/game/Player.h b/src/game/Player.h index 0005e4dfb..75ab41367 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -1166,8 +1166,8 @@ class MANGOS_DLL_SPEC Player : public Unit static bool IsBagPos( uint16 pos ); static bool IsBankPos( uint16 pos ) { return IsBankPos(pos >> 8, pos & 255); } static bool IsBankPos( uint8 bag, uint8 slot ); - bool IsValidPos( uint16 pos, bool explicit_pos ) { return IsValidPos(pos >> 8, pos & 255, explicit_pos); } - bool IsValidPos( uint8 bag, uint8 slot, bool explicit_pos ); + bool IsValidPos( uint16 pos, bool explicit_pos ) const { return IsValidPos(pos >> 8, pos & 255, explicit_pos); } + bool IsValidPos( uint8 bag, uint8 slot, bool explicit_pos ) const; uint8 GetBankBagSlotCount() const { return GetByteValue(PLAYER_BYTES_2, 2); } void SetBankBagSlotCount(uint8 count) { SetByteValue(PLAYER_BYTES_2, 2, count); } bool HasItemCount( uint32 item, uint32 count, bool inBankAlso = false ) const; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2c67ae7b3..c62e1273c 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9528" + #define REVISION_NR "9529" #endif // __REVISION_NR_H__