commit 520a6f72fd32b29a6ae9e1278737df20d6511bf7 parent c049fb4cf16a1ecef42ed7858200ec9fb5d4270e Author: Michael Savage <mikejsavage@gmail.com> Date: Thu Sep 15 10:27:34 +0100 Assert we were able to open dims.txt Diffstat:
terrain_manager.cc | | | 1 | + |
diff --git a/terrain_manager.cc b/terrain_manager.cc @@ -196,6 +196,7 @@ void terrain_init( sprintf( dims_path, "%s/dims.txt", tiles_dir ); FILE * dims = fopen( dims_path, "r" ); + assert( dims != NULL ); fscanf( dims, "%d %d", &tm->width, &tm->height ); fclose( dims ); printf( "%d %d\n", tm->width, tm->height );