mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Quest: Remove duplicate things
This commit is contained in:
@@ -29,6 +29,8 @@ Quest::Quest(Field* questRecord)
|
||||
_reqNpcOrGoCount = 0;
|
||||
_rewItemsCount = 0;
|
||||
_rewChoiceItemsCount = 0;
|
||||
_rewCurrencyCount = 0;
|
||||
_reqCurrencyCount = 0;
|
||||
|
||||
memset(DetailsEmote, 0, sizeof(DetailsEmote));
|
||||
memset(DetailsEmoteDelay, 0, sizeof(DetailsEmoteDelay));
|
||||
@@ -152,13 +154,6 @@ Quest::Quest(Field* questRecord)
|
||||
if (SpecialFlags & QUEST_SPECIAL_FLAGS_AUTO_ACCEPT)
|
||||
Flags |= QUEST_FLAGS_AUTO_ACCEPT;
|
||||
|
||||
_reqItemsCount = 0;
|
||||
_reqNpcOrGoCount = 0;
|
||||
_rewItemsCount = 0;
|
||||
_rewChoiceItemsCount = 0;
|
||||
_rewCurrencyCount = 0;
|
||||
_reqCurrencyCount = 0;
|
||||
|
||||
for (int i = 0; i < QUEST_ITEM_OBJECTIVES_COUNT; ++i)
|
||||
if (RequiredItemId[i])
|
||||
++_reqItemsCount;
|
||||
|
||||
Reference in New Issue
Block a user