Re: Subscript Error

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu