diff options
| author | inspectredc <inspectredc@gmail.com> | 2024-04-23 15:06:15 +0100 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-04-23 10:31:55 -0600 |
| commit | 6512da38e40c5bcb921e3698a6ab0eeac37ed3e3 (patch) | |
| tree | 7993e7867766a4a8b697602ade6a7353ad7d1248 | |
| parent | bcd2450b26457f4adaa639463d42ae973e12e6e8 (diff) | |
fix size mistake
| -rw-r--r-- | src/factories/sm64/MacroFactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/factories/sm64/MacroFactory.cpp b/src/factories/sm64/MacroFactory.cpp index 382a909..26fefb8 100644 --- a/src/factories/sm64/MacroFactory.cpp +++ b/src/factories/sm64/MacroFactory.cpp @@ -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; } |
