1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed CID 1366373

This commit is contained in:
AlexVinS 2016-11-25 19:17:37 +03:00
parent 5dd5a0d4a8
commit ac8b618a42
2 changed files with 5 additions and 4 deletions

View File

@ -32,7 +32,7 @@
*/
CHeroArtPlace::CHeroArtPlace(Point position, const CArtifactInstance * Art): CArtPlace(position, Art),
locked(false), picked(false), marked(false)
locked(false), picked(false), marked(false), ourOwner(nullptr)
{
createImage();
}

View File

@ -88,13 +88,14 @@ public:
ArtifactPosition slotID; //Arts::EPOS enum + backpack starting from Arts::BACKPACK_START
CArtifactsOfHero * ourOwner;
CHeroArtPlace(Point position, const CArtifactInstance * Art = nullptr); //c-tor
void lockSlot(bool on);
void pickSlot(bool on);
void selectSlot(bool on);
CArtifactsOfHero * ourOwner;
CHeroArtPlace(Point position, const CArtifactInstance * Art = nullptr); //c-tor
void clickLeft(tribool down, bool previousState) override;
void clickRight(tribool down, bool previousState) override;
void select();