Core/Player: Extend action button value to uint64 to be able to hold battle pet guids
Port From (https://github.com/TrinityCore/TrinityCore/commit/f67cd38312014b13624dcb5fe1d117dac4892b7d)
This commit is contained in:
@@ -676,7 +676,7 @@ namespace Game.Entities
|
||||
do
|
||||
{
|
||||
byte button = result.Read<byte>(0);
|
||||
uint action = result.Read<uint>(1);
|
||||
ulong action = result.Read<ulong>(1);
|
||||
byte type = result.Read<byte>(2);
|
||||
|
||||
ActionButton ab = AddActionButton(button, action, type);
|
||||
@@ -684,7 +684,7 @@ namespace Game.Entities
|
||||
ab.uState = ActionButtonUpdateState.UnChanged;
|
||||
else
|
||||
{
|
||||
Log.outError(LogFilter.Player, " ...at loading, and will deleted in DB also");
|
||||
Log.outError(LogFilter.Player, $"Player::_LoadActions: Player '{GetName()}' ({GetGUID()}) has an invalid action button (Button: {button}, Action: {action}, Type: {type}). It will be deleted at next save. This can be due to a player changing their talents.");
|
||||
|
||||
// Will deleted in DB at next save (it can create data until save but marked as deleted)
|
||||
m_actionButtons[button] = new ActionButton();
|
||||
|
||||
Reference in New Issue
Block a user