mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-07-01 22:25:17 +02:00
Don't raise if the game attempts to retrieve the autotiles/bitmaps from a disposed Tilemap.
This commit is contained in:
parent
cf43cf005b
commit
f17c5c3a05
2 changed files with 0 additions and 4 deletions
|
@ -126,8 +126,6 @@ RB_METHOD(tilemapInitialize) {
|
||||||
RB_METHOD(tilemapGetAutotiles) {
|
RB_METHOD(tilemapGetAutotiles) {
|
||||||
RB_UNUSED_PARAM;
|
RB_UNUSED_PARAM;
|
||||||
|
|
||||||
checkDisposed<Tilemap>(self);
|
|
||||||
|
|
||||||
return rb_iv_get(self, "autotiles");
|
return rb_iv_get(self, "autotiles");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,8 +86,6 @@ RB_METHOD(tilemapVXInitialize) {
|
||||||
RB_METHOD(tilemapVXGetBitmapArray) {
|
RB_METHOD(tilemapVXGetBitmapArray) {
|
||||||
RB_UNUSED_PARAM;
|
RB_UNUSED_PARAM;
|
||||||
|
|
||||||
checkDisposed<TilemapVX>(self);
|
|
||||||
|
|
||||||
return rb_iv_get(self, "bitmap_array");
|
return rb_iv_get(self, "bitmap_array");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue