diff options
author | Machiavelli <none@none> | 2010-03-20 21:26:29 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2010-03-20 21:26:29 +0100 |
commit | f7ffd77123b5f6c943f7d280fbea5742e2c5d9b9 (patch) | |
tree | fbc2df239fcf5e41dcbbd412d4c8f95f7af44d18 /src/game/ObjectMgr.h | |
parent | 830062779ebe78d3c7044b1185bc1eb965b1a2aa (diff) |
Do not use hard coded index in SMSG_QUEST_POI_QUERY_RESPONSE. May be the resolution for some client crashes.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.h')
-rw-r--r-- | src/game/ObjectMgr.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h index 5df66a923f1..1f061618ced 100644 --- a/src/game/ObjectMgr.h +++ b/src/game/ObjectMgr.h @@ -261,16 +261,17 @@ struct QuestPOIPoint struct QuestPOI { + uint32 Id; int32 ObjectiveIndex; uint32 MapId; - uint32 Unk1; + uint32 AreaId; uint32 Unk2; uint32 Unk3; uint32 Unk4; std::vector<QuestPOIPoint> points; - QuestPOI() : ObjectiveIndex(0), MapId(0), Unk1(0), Unk2(0), Unk3(0), Unk4(0) {} - QuestPOI(int32 objIndex, uint32 mapId, uint32 unk1, uint32 unk2, uint32 unk3, uint32 unk4) : ObjectiveIndex(objIndex), MapId(mapId), Unk1(unk1), Unk2(unk2), Unk3(unk3), Unk4(unk4) {} + QuestPOI() : Id(0), ObjectiveIndex(0), MapId(0), AreaId(0), Unk2(0), Unk3(0), Unk4(0) {} + QuestPOI(uint32 id, int32 objIndex, uint32 mapId, uint32 areaId, uint32 unk2, uint32 unk3, uint32 unk4) : Id(id), ObjectiveIndex(objIndex), MapId(mapId), AreaId(areaId), Unk2(unk2), Unk3(unk3), Unk4(unk4) {} }; typedef std::vector<QuestPOI> QuestPOIVector; |