mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add safety-checks before some servers free()
This commit is contained in:
@@ -476,6 +476,7 @@ Light3D::Light3D() {
|
||||
}
|
||||
|
||||
Light3D::~Light3D() {
|
||||
ERR_FAIL_NULL(RenderingServer::get_singleton());
|
||||
RS::get_singleton()->instance_set_base(get_instance(), RID());
|
||||
|
||||
if (light.is_valid()) {
|
||||
|
||||
Reference in New Issue
Block a user