浏览代码

missing itr end check BOO HISS bad me

Image 2 年之前
父节点
当前提交
f98318afc3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      EQ2/source/WorldServer/client.h

+ 1 - 1
EQ2/source/WorldServer/client.h

@@ -509,7 +509,7 @@ public:
 		bool res = false;
 		MSpellDetails.readlock(__FUNCTION__, __LINE__);
 		std::map<int32, int32>::iterator itr = sent_spell_details.find(id);
-		if(itr->second == tier)
+		if(itr != sent_spell_details.end() && itr->second == tier)
 			res = true;
 		MSpellDetails.releasereadlock(__FUNCTION__, __LINE__);
 		return res;