[7226] Avoid 2 mQuestStatus[quest_id] calls from AddQuest code for speed and possible aliasing problems.
Original patch provided by zhenya. Author: VladimirMangos --HG-- branch : trunk
This commit is contained in:
+2
-1
@@ -1260,7 +1260,6 @@ class TRINITY_DLL_SPEC Player : public Unit
|
||||
}
|
||||
}
|
||||
uint32 GetReqKillOrCastCurrentCount(uint32 quest_id, int32 entry);
|
||||
void AdjustQuestReqItemCount( Quest const* pQuest );
|
||||
void AreaExploredOrEventHappens( uint32 questId );
|
||||
void GroupEventHappens( uint32 questId, WorldObject const* pEventObject );
|
||||
void ItemAddedQuestCheck( uint32 entry, uint32 count );
|
||||
@@ -2422,6 +2421,8 @@ class TRINITY_DLL_SPEC Player : public Unit
|
||||
uint8 _CanStoreItem_InInventorySlots( uint8 slot_begin, uint8 slot_end, ItemPosCountVec& dest, ItemPrototype const *pProto, uint32& count, bool merge, Item *pSrcItem, uint8 skip_bag, uint8 skip_slot ) const;
|
||||
Item* _StoreItem( uint16 pos, Item *pItem, uint32 count, bool clone, bool update );
|
||||
|
||||
void AdjustQuestReqItemCount( Quest const* pQuest, QuestStatusData& questStatusData );
|
||||
|
||||
GridReference<Player> m_gridRef;
|
||||
MapReference m_mapRef;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user