mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-02 10:06:40 +00:00
Avoid possible null dereference - throw an exception instead
This commit is contained in:
parent
00f8c9760a
commit
8812705838
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