Re: Subscript Error
- Posted by petelomax in December
- 254 views
Icy_Viking said...
https://github.com/raysan5/raylib/blob/master/examples/core/core_2d_camera.c said...
Rectangle buildings[MAX_BUILDINGS] = { 0 };
sequence buildings = {0,0,0,0}
Your buildings is a sequence of 4 atoms, it needs to be more like
sequence buildings = repeat({0,0,0,0},MAX_BUILDINGS)
Each buildings[i] might need to be a Rectangle/allocated memory instead
I suspect you'll have the same problem with buildColors