1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Mark unchanging static as const

This commit is contained in:
elsid 2022-05-07 00:12:00 +02:00
parent 66c9b6c199
commit ef64587cbf
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -380,7 +380,7 @@ namespace MWMechanics
return;
// Play a random voice greeting if the player gets too close
static int iGreetDistanceMultiplier = MWBase::Environment::get().getWorld()->getStore()
static const int iGreetDistanceMultiplier = MWBase::Environment::get().getWorld()->getStore()
.get<ESM::GameSetting>().find("iGreetDistanceMultiplier")->mValue.getInteger();
float helloDistance = static_cast<float>(actorStats.getAiSetting(CreatureStats::AI_Hello).getModified() * iGreetDistanceMultiplier);