Do not use hard coded index in SMSG_QUEST_POI_QUERY_RESPONSE. May be the resolution for some client crashes.

--HG--
branch : trunk
This commit is contained in:
Machiavelli committed 2010-03-20 21:26:29 +01:00
1 parent 830062779e
commit f7ffd77123
3 files changed
+11 -12

No files matched your search

+1 -1
View File
@@ -6779,7 +6779,7 @@ void ObjectMgr::LoadQuestPOI()
uint32 unk3 = fields[6].GetUInt32();
uint32 unk4 = fields[7].GetUInt32();
QuestPOI POI(objIndex, mapId, WorldMapAreaId, FloorId, unk3, unk4);
QuestPOI POI(id, objIndex, mapId, WorldMapAreaId, FloorId, unk3, unk4);
QueryResult_AutoPtr points = WorldDatabase.PQuery("SELECT x, y FROM quest_poi_points WHERE questId='%u' AND id='%i'", questId, id);