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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user