diff --git a/hch/CObjectHandler.cpp b/hch/CObjectHandler.cpp index 1c2d57b1d..fe0ba5d70 100644 --- a/hch/CObjectHandler.cpp +++ b/hch/CObjectHandler.cpp @@ -3159,7 +3159,7 @@ bool CQuest::checkQuest (const CGHeroInstance * h) const void CGSeerHut::initObj() { - seerName = & (VLC->generaltexth->seerNames[ran()%VLC->generaltexth->seerNames.size()]); + seerName = VLC->generaltexth->seerNames[ran()%VLC->generaltexth->seerNames.size()]; } const std::string & CGSeerHut::getHoverText() const diff --git a/hch/CObjectHandler.h b/hch/CObjectHandler.h index 084a69433..e7f2b9ce9 100644 --- a/hch/CObjectHandler.h +++ b/hch/CObjectHandler.h @@ -594,7 +594,7 @@ public: si32 rID; //reward ID si32 rVal; //reward value ui8 textOption; //store randomized mission write-ups rather than entire string (?) - std::string * seerName; + std::string seerName; void initObj(); const std::string & getHoverText() const;