GLBasic forum

Main forum => Bug Reports => Topic started by: spicypixel on 2011-Oct-12

Title: READUBYTE and Arrays
Post by: spicypixel on 2011-Oct-12
This code fails miserably (not sure why)
Code (glbasic) Select
READUBYTE 1, TileMap[x][y]

However this is basically the same but works flawlessly.
Code (glbasic) Select
LOCAL MapData%
READUBYTE 1, MapData%
TileMap[x][y] = MapData%
Title: Re: READUBYTE and Arrays
Post by: MrTAToad on 2011-Oct-12
That could be because TileMap is not an integer...
Title: Re: READUBYTE and Arrays
Post by: spicypixel on 2011-Oct-12
Yup you're right thanks, was tearing my hair out :D