forked from mirror/openmw-tes3mp
Add missing hasItemHealth for lockpicks/probes (Fixes #1385)
This commit is contained in:
parent
7376cb9b61
commit
00775035af
2 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,9 @@ namespace MWClass
|
|||
|
||||
virtual int getItemMaxHealth (const MWWorld::Ptr& ptr) const;
|
||||
///< Return item max health or throw an exception, if class does not have item health
|
||||
|
||||
virtual bool hasItemHealth (const MWWorld::Ptr& ptr) const { return true; }
|
||||
///< \return Item health data available? (default implementation: false)
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -64,6 +64,9 @@ namespace MWClass
|
|||
|
||||
virtual int getItemMaxHealth (const MWWorld::Ptr& ptr) const;
|
||||
///< Return item max health or throw an exception, if class does not have item health
|
||||
|
||||
virtual bool hasItemHealth (const MWWorld::Ptr& ptr) const { return true; }
|
||||
///< \return Item health data available? (default implementation: false)
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue