mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8732] Not drop at save action button assign to value that recently removed from it.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
fad1fb92f4
commit
04911535ea
2 changed files with 2 additions and 2 deletions
|
|
@ -161,7 +161,7 @@ struct ActionButton
|
||||||
void SetActionAndType(uint32 action, ActionButtonType type)
|
void SetActionAndType(uint32 action, ActionButtonType type)
|
||||||
{
|
{
|
||||||
uint32 newData = action | (uint32(type) << 24);
|
uint32 newData = action | (uint32(type) << 24);
|
||||||
if (newData != packedData)
|
if (newData != packedData || uState == ACTIONBUTTON_DELETED)
|
||||||
{
|
{
|
||||||
packedData = newData;
|
packedData = newData;
|
||||||
if (uState != ACTIONBUTTON_NEW)
|
if (uState != ACTIONBUTTON_NEW)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8731"
|
#define REVISION_NR "8732"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue