mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 03:32:36 +00:00
a710cf6d10
Some managers may use the environment in the destructors. Setting them to nullptr may lead to nullptr dereference when the object is still alive and can be accessible. But after object is destructed it's UB anyway to dereference nullptr or a dangling pointer.