* Fix a bug; prevent server from deleting action button of the talent spec that was just switched to, caused by clients response when spells are being unlearned.
--HG-- branch : trunk
This commit is contained in:
+3
-2
@@ -157,10 +157,11 @@ enum ActionButtonType
|
||||
|
||||
struct ActionButton
|
||||
{
|
||||
ActionButton() : packedData(0), uState( ACTIONBUTTON_NEW ) {}
|
||||
ActionButton() : packedData(0), uState( ACTIONBUTTON_NEW ), canRemoveByClient(true){}
|
||||
|
||||
uint32 packedData;
|
||||
ActionButtonUpdateState uState;
|
||||
bool canRemoveByClient;
|
||||
|
||||
// helpers
|
||||
ActionButtonType GetType() const { return ActionButtonType(ACTION_BUTTON_TYPE(packedData)); }
|
||||
@@ -2240,7 +2241,7 @@ class MANGOS_DLL_SPEC Player : public Unit
|
||||
/*** LOAD SYSTEM ***/
|
||||
/*********************************************************/
|
||||
|
||||
void _LoadActions(QueryResult *result);
|
||||
void _LoadActions(QueryResult *result, bool startup);
|
||||
void _LoadAuras(QueryResult *result, uint32 timediff);
|
||||
void _LoadGlyphAuras();
|
||||
void _LoadBoundInstances(QueryResult *result);
|
||||
|
||||
Reference in New Issue
Block a user