aboutsummaryrefslogtreecommitdiff
path: root/src/tiles.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-11 23:12:12 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-11 23:12:12 +0300
commita756913a7134c207a7d29a1175a428b02f61b777 (patch)
treef462a6b9f5a324467973800c6315e3cd2b37e20f /src/tiles.c
parent89a48fc3e7252e1c7941f86559ca00b38d525244 (diff)
minor bug fixes
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);