From a3f59d8433230cbb279092c8e7876522a7830fd2 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 11 Feb 2017 18:02:47 +0200 Subject: CRYO: Remove one more usage of sizeof() --- devtools/create_cryo/create_cryo_dat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devtools/create_cryo') diff --git a/devtools/create_cryo/create_cryo_dat.cpp b/devtools/create_cryo/create_cryo_dat.cpp index 875acad3f1..5a693d96fe 100644 --- a/devtools/create_cryo/create_cryo_dat.cpp +++ b/devtools/create_cryo/create_cryo_dat.cpp @@ -110,7 +110,7 @@ static void emitStatic(FILE *f) { fwrite(kDinoSpeedForCitaLevel, 1, kNumDinoSpeedForCitaLevel, f); fwrite(kTabletView, 1, kNumTabletView, f); fwrite(kPersoRoomBankTable, 1, kNumPersoRoomBankTable, f); - fwrite(gotos, sizeof(Goto), kNumGotos, f); + fwrite(gotos, 5, kNumGotos, f); // sizeof(Goto) for (int i = 0; i < kNumObjects; i++) { writeLE(f, _objects[i]._id); -- cgit v1.2.3