home · contact · privacy
Fixed some more pitfalls that hurt working with game maps of maximum size.
[plomrogue] / src / client / io.c
index 43a695ab02b90f43356ea9712436f42c11eaa31d..a4dc7f321b6e764714fc52410f0c32f51fc68d37 100644 (file)
@@ -110,7 +110,7 @@ static void read_map_cells(FILE * file)
     char * f_name = "read_map_cells()";
     free(world.map.cells);
     world.map.cells = try_malloc(world.map.size.y * world.map.size.x, f_name);
-    uint8_t y, x;
+    uint16_t y, x;
     for (y = 0; y < world.map.size.y; y++)
     {
         for (x = 0; x < world.map.size.x; x++)