From 8000751d9022c99c946e53d4893bbcce81d544ad Mon Sep 17 00:00:00 2001 From: dzil123 <5725958+dzil123@users.noreply.github.com> Date: Fri, 18 Nov 2022 22:02:47 -0800 Subject: RenderDummy::TextureStorage::texture_replace add missing null check --- servers/rendering/dummy/storage/texture_storage.h | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/rendering/dummy/storage/texture_storage.h b/servers/rendering/dummy/storage/texture_storage.h index a17d734e10..dd89504f38 100644 --- a/servers/rendering/dummy/storage/texture_storage.h +++ b/servers/rendering/dummy/storage/texture_storage.h @@ -80,6 +80,7 @@ public: virtual void texture_free(RID p_rid) override { // delete the texture DummyTexture *texture = texture_owner.get_or_null(p_rid); + ERR_FAIL_COND(!texture); texture_owner.free(p_rid); memdelete(texture); }; -- cgit v1.2.3