i have been debuging a game, and when i hit this line of code:
dbGetImage(MAP_FILE_TILES, 0, 20, (widthTotal*30), (heightTotal*30)+20);
i get that runtime error, the code refrences these:
//14-max tiles: the terrain tiles
#define TILES 14
//pixels: the terrain pixels used to create the preview
#define PIXELS TILES+(widthTotal)*(heightTotal)
//map file tiles: the screen cap of the terrain tiles, used to form the map data for the file
#define MAP_FILE_TILES PIXELS+(widthTotal)*(heightTotal)
widthTotal and heightTotal both equal 1, as they should, according to the debugger. i dont know what this error means, execept "there is nothing here to read", and i dont know how to fix it.
-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.