mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-01 09:41:35 +00:00
Merge branch 'coverity' into 'master'
Avoid possible null dereference See merge request OpenMW/openmw!2243
This commit is contained in:
commit
263a955290
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ namespace MWGui
|
|||
if (effectId != -1)
|
||||
{
|
||||
const ESM::MagicEffect *magicEffect =
|
||||
store.get<ESM::MagicEffect>().search(effectId);
|
||||
store.get<ESM::MagicEffect>().find(effectId);
|
||||
std::string effectIDStr = ESM::MagicEffect::effectIdToString(effectId);
|
||||
std::string fullEffectName = wm->getGameSettingString(effectIDStr, "");
|
||||
|
||||
|
|
Loading…
Reference in a new issue