Browse Source

Force a save of the quest when added to players quest book

Emagi 11 months ago
parent
commit
1646afdf4e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      EQ2/source/WorldServer/client.cpp

+ 2 - 0
EQ2/source/WorldServer/client.cpp

@@ -6107,6 +6107,8 @@ void Client::AddPlayerQuest(Quest* quest, bool call_accepted, bool send_packets)
 		GetPlayer()->MPlayerQuests.releasewritelock(__FUNCTION__, __LINE__);
 	
 	quest->SetPlayer(player);
+	quest->SetSaveNeeded(true);
+	
 	current_quest_id = quest->GetQuestID();
 	if (send_packets && quest->GetQuestGiver() > 0)
 		GetCurrentZone()->SendSpawnChangesByDBID(quest->GetQuestGiver(), this, false, true);