Hello,
I've been trying to figure this out on my own. I just started playing around with SFML again and I usually am able to move stuff around to make it work but I want to be able to understand what actually is going on. I've had problems simplifying my code in the past to where the issue is, but here goes nothing.
Grid Class
Grid::Grid(int arraySize){
arraySize = arraySize;
gridLines[arraySize];
std::cout << arraySize;
}
void Grid::drawTo(sf::RenderWindow &mWindow)
{
for (int tRun = 0; tRun <= arraySize; tRun++){
mWindow.draw(gridLines[arraySize]);
}
Main Class
//Everything else in the file is irrelevant (Game Loop Stuff)
grid.drawTo(gameWindow);