diff --git a/lib/mapObjects/CQuest.cpp b/lib/mapObjects/CQuest.cpp index 3a1abc5cf..b1f78237b 100644 --- a/lib/mapObjects/CQuest.cpp +++ b/lib/mapObjects/CQuest.cpp @@ -23,6 +23,13 @@ std::map > CGKeys::playerKeyMap; +CQuest::CQuest() + : qid(-1), missionType(MISSION_NONE), progress(NOT_ACTIVE), lastDay(-1), m13489val(0), + textOption(0), completedOption(0), stackDirection(0), heroPortrait(-1), + isCustomFirst(false), isCustomNext(false), isCustomComplete(false) +{ +} + ///helpers static void showInfoDialog(const PlayerColor playerID, const ui32 txtID, const ui16 soundID) { diff --git a/lib/mapObjects/CQuest.h b/lib/mapObjects/CQuest.h index 822911410..facbc4da8 100644 --- a/lib/mapObjects/CQuest.h +++ b/lib/mapObjects/CQuest.h @@ -50,7 +50,7 @@ public: std::string firstVisitText, nextVisitText, completedText; bool isCustomFirst, isCustomNext, isCustomComplete; - CQuest(){missionType = MISSION_NONE;}; //default constructor + CQuest(); virtual ~CQuest(){}; virtual bool checkQuest (const CGHeroInstance * h) const; //determines whether the quest is complete or not