Mercurial > wow > wowdb-profiler
comparison Main.lua @ 84:1f09f3590baa
Don't record quest ID 0.
| author | James D. Callahan III <jcallahan@curse.com> |
|---|---|
| date | Thu, 23 Aug 2012 11:30:03 -0500 |
| parents | fc3e8a55d7ea |
| children | e2b741356fc9 |
comparison
equal
deleted
inserted
replaced
| 83:f279148e3298 | 84:1f09f3590baa |
|---|---|
| 1246 local _, num_quests = _G.GetNumQuestLogEntries() | 1246 local _, num_quests = _G.GetNumQuestLogEntries() |
| 1247 | 1247 |
| 1248 while processed_quests <= num_quests do | 1248 while processed_quests <= num_quests do |
| 1249 local _, _, _, _, is_header, _, _, _, quest_id = _G.GetQuestLogTitle(entry_index) | 1249 local _, _, _, _, is_header, _, _, _, quest_id = _G.GetQuestLogTitle(entry_index) |
| 1250 | 1250 |
| 1251 if not is_header then | 1251 if quest_id == 0 then |
| 1252 processed_quests = processed_quests + 1 | |
| 1253 elseif not is_header then | |
| 1252 _G.SelectQuestLogEntry(entry_index); | 1254 _G.SelectQuestLogEntry(entry_index); |
| 1253 | 1255 |
| 1254 local quest = DBEntry("quests", quest_id) | 1256 local quest = DBEntry("quests", quest_id) |
| 1255 quest.timer = _G.GetQuestLogTimeLeft() | 1257 quest.timer = _G.GetQuestLogTimeLeft() |
| 1256 quest.can_share = _G.GetQuestLogPushable() and true or nil | 1258 quest.can_share = _G.GetQuestLogPushable() and true or nil |
