Mercurial > wow > wowdb-profiler
changeset 446:c8b5277f5e2e
Fixed a nil error that occurred in certain cases when completing quests.
| author | MMOSimca <MMOSimca@gmail.com> | 
|---|---|
| date | Thu, 12 Mar 2015 03:10:39 -0400 | 
| parents | 20dd5a4d74ab | 
| children | bf1fbf1c9cb2 | 
| files | Main.lua | 
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] | 
line wrap: on
 line diff
--- a/Main.lua Wed Mar 11 12:19:45 2015 -0400 +++ b/Main.lua Thu Mar 12 03:10:39 2015 -0400 @@ -2590,6 +2590,10 @@ function WDP:QUEST_COMPLETE(event_name) local quest = UpdateQuestJuncture("end") + + if not quest then + return + end if ALLOWED_LOCALES[CLIENT_LOCALE] then quest.reward_text = ReplaceKeywords(_G.GetRewardText())
