Merge pull request #101 from ZhengPeiRu21/crashFix3

Fix crash when performing RetroActive appearance check with invalid quest IDs
This commit is contained in:
Stefano Borzì
2022-09-03 20:43:45 +02:00
committed by GitHub

View File

@@ -609,7 +609,7 @@ public:
void OnPlayerCompleteQuest(Player* player, Quest const* quest) override
{
if (!sT->GetUseCollectionSystem())
if (!sT->GetUseCollectionSystem() || !quest)
return;
for (uint8 i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
{