mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 22:45:15 -04: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