1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Add to changelog, authors. Move variable declaration inside block

This commit is contained in:
jefetienne 2020-11-18 14:30:41 -05:00
parent 2413de38b5
commit bc6f46465f
3 changed files with 4 additions and 2 deletions

View File

@ -96,6 +96,7 @@ Programmers
Jan Borsodi (am0s) Jan Borsodi (am0s)
Jason Hooks (jhooks) Jason Hooks (jhooks)
jeaye jeaye
jefetienne
Jeffrey Haines (Jyby) Jeffrey Haines (Jyby)
Jengerer Jengerer
Jiří Kuneš (kunesj) Jiří Kuneš (kunesj)

View File

@ -87,6 +87,7 @@
Feature #5642: Ability to attach arrows to actor skeleton instead of bow mesh Feature #5642: Ability to attach arrows to actor skeleton instead of bow mesh
Feature #5649: Skyrim SE compressed BSA format support Feature #5649: Skyrim SE compressed BSA format support
Feature #5672: Make stretch menu background configuration more accessible Feature #5672: Make stretch menu background configuration more accessible
Feature #5692: Improve spell/magic item search to factor in magic effect names
Task #5480: Drop Qt4 support Task #5480: Drop Qt4 support
Task #5520: Improve cell name autocompleter implementation Task #5520: Improve cell name autocompleter implementation

View File

@ -51,11 +51,11 @@ namespace MWGui
for (unsigned int i = 0; i < effects.mList.size(); ++i) for (unsigned int i = 0; i < effects.mList.size(); ++i)
{ {
short effectId = effects.mList[i].mEffectID; short effectId = effects.mList[i].mEffectID;
const ESM::MagicEffect *magicEffect =
store.get<ESM::MagicEffect>().search(effectId);
if (effectId != -1) if (effectId != -1)
{ {
const ESM::MagicEffect *magicEffect =
store.get<ESM::MagicEffect>().search(effectId);
std::string effectIDStr = ESM::MagicEffect::effectIdToString(effectId); std::string effectIDStr = ESM::MagicEffect::effectIdToString(effectId);
std::string fullEffectName = wm->getGameSettingString(effectIDStr, ""); std::string fullEffectName = wm->getGameSettingString(effectIDStr, "");