Skip to content

Commit

Permalink
fix size mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
inspectredc authored and KiritoDv committed Apr 23, 2024
1 parent bcd2450 commit 6512da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factories/sm64/MacroFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ExportResult SM64::MacroCodeExporter::Export(std::ostream &write, std::shared_pt

write << "\n};\n";

size_t size = (macro->mMacroData.size()) * sizeof(MacroObject) + 1;
size_t size = (macro->mMacroData.size()) * 5 * sizeof(int16_t) + 1;

return offset + size;
}
Expand Down

0 comments on commit 6512da3

Please sign in to comment.