1
0
Fork 0
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:
Andrei Kortunov 2022-08-05 20:10:09 +04:00
parent 00f8c9760a
commit 8812705838

View file

@ -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, "");