From 2ea4db3303c9a4d73010743360e5a055cc51f36b Mon Sep 17 00:00:00 2001 From: Tekkub Stoutwrithe Date: Tue, 23 Oct 2007 04:29:38 +0000 Subject: [PATCH] TourGuide - Fix for issue #122, TourGuide:CompleteQuest(...) will gracefully fail if no guide is loaded (doesn't prevent quest turnin with an error) git-svn-id: https://tekkub-wow.googlecode.com/svn/trunk/TourGuide@651 86fe6d9a-1522-0410-a387-bf9db416f0a0 --- TourGuide.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TourGuide.lua b/TourGuide.lua index 97ccfee..9300e2d 100644 --- a/TourGuide.lua +++ b/TourGuide.lua @@ -141,6 +141,11 @@ end function TourGuide:CompleteQuest(name, noupdate) + if not self.current then + self:DebugF(1, "Cannot complete %q, no guide loaded", name) + return + end + local i = self.current local action, quest repeat -- 2.11.4.GIT