mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-13 07:14:31 +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
@ -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…
x
Reference in New Issue
Block a user