瀏覽代碼

crash fix on quests due to uninitialized value

Image 3 年之前
父節點
當前提交
db6f98058d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      EQ2/source/WorldServer/Quests.cpp

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

@@ -331,6 +331,7 @@ Quest::Quest(int32 in_id){
 	quest_state_temporary = false;
 	tmp_reward_status = 0;
 	tmp_reward_coins = 0;
+	completed_description = string("");
 }
 
 Quest::Quest(Quest* old_quest){
@@ -404,6 +405,7 @@ Quest::Quest(Quest* old_quest){
 	quest_state_temporary = false;
 	tmp_reward_status = 0;
 	tmp_reward_coins = 0;
+	completed_description = string("");
 }
 
 Quest::~Quest(){