mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 06:39:42 +00:00
Mark getActivePackage const
This commit is contained in:
parent
cba51e5e1c
commit
23615e653a
2 changed files with 2 additions and 2 deletions
|
@ -430,7 +430,7 @@ bool MWMechanics::AiSequence::isEmpty() const
|
|||
return mPackages.empty();
|
||||
}
|
||||
|
||||
const AiPackage& MWMechanics::AiSequence::getActivePackage()
|
||||
const AiPackage& MWMechanics::AiSequence::getActivePackage() const
|
||||
{
|
||||
if(mPackages.empty())
|
||||
throw std::runtime_error(std::string("No AI Package!"));
|
||||
|
|
|
@ -163,7 +163,7 @@ namespace MWMechanics
|
|||
|
||||
/// Return the current active package.
|
||||
/** If there is no active package, it will throw an exception **/
|
||||
const AiPackage& getActivePackage();
|
||||
const AiPackage& getActivePackage() const;
|
||||
|
||||
/// Fills the AiSequence with packages
|
||||
/** Typically used for loading from the ESM
|
||||
|
|
Loading…
Reference in a new issue