2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-21 00:59:13 +00:00

Fix CInputStream::Get/ReadBytes not properly updating position

This commit is contained in:
2022-02-18 21:32:36 -08:00
parent dad7249927
commit ce23544a15
3 changed files with 31 additions and 37 deletions

View File

@@ -9,13 +9,13 @@ namespace metaforce {
logvisor::Module Log("metaforce::RetroTypes::CAssetId");
SObjectTag::SObjectTag(CInputStream& in) {
in.ReadBytes(reinterpret_cast<char*>(&type), 4);
in.Get(reinterpret_cast<u8*>(&type), 4);
id = in.Get<CAssetId>();
}
void SObjectTag::ReadMLVL(CInputStream& in) {
id = in.Get<CAssetId>();
in.ReadBytes(reinterpret_cast<char*>(&type), 4);
in.Get(reinterpret_cast<u8*>(&type), 4);
}
CAssetId::CAssetId(CInputStream& in) {