1
0
Fork 1
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:
scrawl 2016-05-19 22:35:25 +02:00
parent a9561f738a
commit 44dd67ee0f

View file

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