SDL_BlitSurface segmentation fault (surfaces aren't null)
- by Trollkemada
My app is crashing on SDL_BlitSurface() and i can't figure out why. I think it has something to do with my static object. If you read the code you'll why I think so.
This happens when the limits of the map are reached, i.e. (iwidth || jheight). This is the code:
Map.cpp (this render)
Tile const * Map::getTyle(int i, int j) const {
if (i…