Segmentation fault when trying to acess matrix
I’m trying to develop a falling sand game simulation with C++ and SFML, but i’m having a problem with a function that is acessing the matrix that represents the cell blocks from the game, here i have the Grid class:
Segmentation fault when trying to acess matrix, c++ sfml program
I’m trying to develop a falling sand game simulation with C++ and SFML, but i’m having a problem with a function that is acessing the matrix that represents the cell blocks from the game, here i have the Grid class: