summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandom06457 <28494085+Random06457@users.noreply.github.com>2023-11-20 22:41:46 +0100
committerRandom06457 <28494085+Random06457@users.noreply.github.com>2023-11-20 22:41:46 +0100
commite6320710878ec4736dab87178064dd7abe698f2d (patch)
tree883370d665f34a1f3f72599823de477b1f5f1522
parent64271fe66fad26a97bd69417a68d7b7b80728dcc (diff)
importer: revert regressions
-rw-r--r--mm/2s2h/resource/importer/CutsceneFactory.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/2s2h/resource/importer/CutsceneFactory.cpp b/mm/2s2h/resource/importer/CutsceneFactory.cpp
index 34c12ccc0..067664253 100644
--- a/mm/2s2h/resource/importer/CutsceneFactory.cpp
+++ b/mm/2s2h/resource/importer/CutsceneFactory.cpp
@@ -746,7 +746,7 @@ void LUS::CutsceneFactoryV0::ParseFileBinaryMM(std::shared_ptr<BinaryReader> rea
uint32_t size = reader->ReadUInt32();
cutscene->commands.push_back(size);
- for (uint32_t i = 0; i < (size / 4); i++) {
+ for (uint32_t i = 0; i < size; i++) {
cutscene->commands.push_back(read_CMD_HH(reader));
}
break;
@@ -886,9 +886,6 @@ void LUS::CutsceneFactoryV0::ParseFileBinaryMM(std::shared_ptr<BinaryReader> rea
cutscene->commands.push_back(reader->ReadUInt32());
cutscene->commands.push_back(reader->ReadUInt32());
cutscene->commands.push_back(reader->ReadUInt32());
- cutscene->commands.push_back(reader->ReadUInt32());
- cutscene->commands.push_back(reader->ReadUInt32());
- cutscene->commands.push_back(reader->ReadUInt32());
}
break;
}