Invalid spell effects are not handled gracefully
I noticed this thanks to a bug report on my Better Balanced Combat mod which uses GetSpellEffects in a script that runs every frame.
It returns normally in most cells but when the player is in some cells it returns -1 which causes black screens.
Cells that it has issues in include:
Mages Guild, Vivec Foreign Quarter
Imperial Commission, Fort Ebonheart
There are probably more.
Here's an image of the TES3MP output that the user of my mod submitted:
I did verify that this issue still exists in the current release build of OpenMW before submitting this report.
I've released a version of my mod that uses GetSpell instead of GetSpellEffects just for OpenMW and TES3MP users as a temporary fix but it does not work in the original game due to a bug with GetSpell in the original engine. So I need two separate versions of my mod until this is fixed in OpenMW.
If someone wants to debug this you can install the non OpenMW version of my mod which still uses GetSpellEffects here: https://www.nexusmods.com/morrowind/mods/46596?tab=files