mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Fix a potential crash for lights without a model that have "off by default" flag set
This commit is contained in:
parent
a9561f738a
commit
44dd67ee0f
1 changed files with 1 additions and 1 deletions
|
@ -1479,7 +1479,7 @@ namespace MWRender
|
|||
if (ptr.getTypeName() == typeid(ESM::Light).name() && allowLight)
|
||||
addExtraLight(getOrCreateObjectRoot(), ptr.get<ESM::Light>()->mBase);
|
||||
|
||||
if (!allowLight)
|
||||
if (!allowLight && mObjectRoot)
|
||||
{
|
||||
RemoveParticlesVisitor visitor;
|
||||
mObjectRoot->accept(visitor);
|
||||
|
|
Loading…
Reference in a new issue