1
0
Fork 0
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:
ζeh Matt 2022-03-28 16:17:42 +03:00
parent cba51e5e1c
commit 23615e653a
No known key found for this signature in database
GPG key ID: 18CE582C71A225B0
2 changed files with 2 additions and 2 deletions

View file

@ -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!"));

View file

@ -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