Hello, I'm getting a weird segFault.. I'm stumped on why its happening... here is some of my code
main.cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
...
Ground * grounds[32000];
int main () {
grounds[groundNum] = new Ground(10, 10, 20, 40);
// Update all the grounds
for (int i = 0; i < groundNum; i++) {
grounds[i]->update();
}
}
...
? you mean like declaring it? earlyer on I declare App as sf::RenderWindow. Also, I can draw other things on the screen, just the Ground class is being a pain... I think it's somewhere in my pointer.