Fix crash when performing RetroActive appearance check with invalid quest IDs

This commit is contained in:
郑佩茹
2022-09-02 15:19:09 -06:00
parent e20d44bce4
commit 0be628a3bc

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)
{