From f17c5c3a05662704b8d55e7c5eeef30ee543e260 Mon Sep 17 00:00:00 2001 From: Wayward Heart <91356680+WaywardHeart@users.noreply.github.com> Date: Mon, 2 Sep 2024 15:22:41 -0500 Subject: [PATCH] Don't raise if the game attempts to retrieve the autotiles/bitmaps from a disposed Tilemap. --- binding/tilemap-binding.cpp | 2 -- binding/tilemapvx-binding.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/binding/tilemap-binding.cpp b/binding/tilemap-binding.cpp index 79d08b34..8180c5b4 100644 --- a/binding/tilemap-binding.cpp +++ b/binding/tilemap-binding.cpp @@ -126,8 +126,6 @@ RB_METHOD(tilemapInitialize) { RB_METHOD(tilemapGetAutotiles) { RB_UNUSED_PARAM; - checkDisposed(self); - return rb_iv_get(self, "autotiles"); } diff --git a/binding/tilemapvx-binding.cpp b/binding/tilemapvx-binding.cpp index 992093c9..18261c07 100644 --- a/binding/tilemapvx-binding.cpp +++ b/binding/tilemapvx-binding.cpp @@ -86,8 +86,6 @@ RB_METHOD(tilemapVXInitialize) { RB_METHOD(tilemapVXGetBitmapArray) { RB_UNUSED_PARAM; - checkDisposed(self); - return rb_iv_get(self, "bitmap_array"); }