Browse Source

Quest crash fix if step was NULL

Image 3 years ago
parent
commit
0e2ac675b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      EQ2/source/WorldServer/Quests.cpp

+ 1 - 1
EQ2/source/WorldServer/Quests.cpp

@@ -1208,7 +1208,7 @@ EQ2Packet* Quest::QuestJournalReply(int16 version, int32 player_crc, Player* pla
 			for (int16 i = 0; i < total_task_groups; i++)
 				packet->setArrayDataByName("unknown4", 0xFFFFFFFF, i);
 
-			if (step->GetItemID() > 0) {
+			if (step && step->GetItemID() > 0) {
 				packet->setArrayLengthByName("usable_item_count", 1);
 				Item* item = player->GetPlayerItemList()->GetItemFromID(step->GetItemID(), 1);
 				if (item) {