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:
parent
5dd5a0d4a8
commit
ac8b618a42
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user