Open mundusnine opened 5 months ago
Multi-dimensional arrays are not supported - in principle I never intended to support them, as that would be somewhat complex to add and you can always use an ordinary array instead. I probably should add an error message, though.
Multi-dimensional arrays are not supported - in principle I never intended to support them, as that would be somewhat complex to add and you can always use an ordinary array instead. I probably should add an error message, though.
I guess we could also use a 2d std::vector since we use the STL implementation for the actual calls ?
Oops, sorry, I'm just realizing that I misinterpreted the description of the issue. You are trying to access individual chars from a char array, not to use multi-dimensional arrays. I'll look into it!
Edit: I have just written a little test with double indexing (const char* [ ] --> char) and it seems to work now, after my last commit. Please give it a try and let me know if it did the trick!
The while loop conditional can be thrown of course by "complex" array indexing. This will work:
this wont:
From some testing, the
i-1
seems to be the offender in the complete line. FYI, thei
comes from :for(int i=1; i < appstate->num_levels;++i){
before the while loop