1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-24 19:56:37 +00:00

Update file spellcreationdialog.cpp

This commit is contained in:
Garrett 2025-04-03 05:12:15 +00:00 committed by SkyHasACat
parent bcb27fff6a
commit 2d2df30f80

View file

@ -30,7 +30,6 @@
namespace namespace
{ {
bool sortMagicEffects(short id1, short id2) bool sortMagicEffects(short id1, short id2)
{ {
const MWWorld::Store<ESM::GameSetting>& gmst const MWWorld::Store<ESM::GameSetting>& gmst
@ -556,10 +555,10 @@ namespace MWGui
for (const short effectId : knownEffects) for (const short effectId : knownEffects)
{ {
mAvailableEffectsList->addItem(MWBase::Environment::get() mAvailableEffectsList->addItem(MWBase::Environment::get()
.getESMStore() .getESMStore()
->get<ESM::GameSetting>() ->get<ESM::GameSetting>()
.find(ESM::MagicEffect::indexToGmstString(effectId)) .find(ESM::MagicEffect::indexToGmstString(effectId))
->mValue.getString()); ->mValue.getString());
mButtonMapping[i] = effectId; mButtonMapping[i] = effectId;
++i; ++i;
} }