aboutsummaryrefslogtreecommitdiff
path: root/src/tiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tiles.c')
-rw-r--r--src/tiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tiles.c b/src/tiles.c
index 28ec89c..cecee5a 100644
--- a/src/tiles.c
+++ b/src/tiles.c
@@ -55,7 +55,7 @@ static void load_tile_data(char *tc, char *ts, size_t *tid)
exit(EXIT_FAILURE);
}
- fread(tid, sizeof(size_t), sizeof(size_t), fp);
+ fread(tid, sizeof(size_t), 1, fp);
fread(tc, 1, *tid, fp);
fread(ts, 1, *tid, fp);