From f5c2b7951df112879e141ab45140b5d8e6bc0d38 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Fri, 31 Jan 2025 14:39:41 -0600 Subject: [PATCH] Fixed audio table calculation --- src/factories/naudio/v1/AudioTableFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/factories/naudio/v1/AudioTableFactory.cpp b/src/factories/naudio/v1/AudioTableFactory.cpp index dc2c7d1..11e4267 100644 --- a/src/factories/naudio/v1/AudioTableFactory.cpp +++ b/src/factories/naudio/v1/AudioTableFactory.cpp @@ -65,7 +65,7 @@ ExportResult AudioTableCodeExporter::Export(std::ostream &write, std::shared_ptr write << "// Count: " << table->entries.size() << "\n"; } - return offset + 0x10 + (table->entries.size() * sizeof(AudioTableEntry)); + return offset + 0x10 + (table->entries.size() * 0x10); } ExportResult AudioTableBinaryExporter::Export(std::ostream &write, std::shared_ptr raw, std::string& entryName, YAML::Node &node, std::string* replacement ) {