From 6abc207f1eb69d39c3d0ea98c6c0cad67b88ab44 Mon Sep 17 00:00:00 2001 From: cremno Date: Fri, 12 Sep 2014 15:15:16 +0200 Subject: [PATCH] VX tilemap has 9 bitmaps --- binding-mri/tilemapvx-binding.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/binding-mri/tilemapvx-binding.cpp b/binding-mri/tilemapvx-binding.cpp index af15968..88e56ed 100644 --- a/binding-mri/tilemapvx-binding.cpp +++ b/binding-mri/tilemapvx-binding.cpp @@ -58,8 +58,8 @@ RB_METHOD(tilemapVXInitialize) VALUE autotilesObj = rb_iv_get(self, "bitmap_array"); - VALUE ary = rb_ary_new2(7); - for (int i = 0; i < 7; ++i) + VALUE ary = rb_ary_new2(9); + for (int i = 0; i < 9; ++i) rb_ary_push(ary, Qnil); rb_iv_set(autotilesObj, "array", ary); @@ -119,7 +119,7 @@ RB_METHOD(tilemapVXBitmapsGet) int i; rb_get_args (argc, argv, "i", &i RB_ARG_END); - if (i < 0 || i > 6) + if (i < 0 || i > 8) return Qnil; VALUE ary = rb_iv_get(self, "array");