mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 00:27:43 +00:00
General resource handling bug fixes
This commit is contained in:
@@ -11,11 +11,11 @@ std::experimental::optional<CVisorFlare::CFlareDef> CVisorFlare::LoadFlareDef(CI
|
||||
if (propCount != 4)
|
||||
return {};
|
||||
|
||||
u32 txtrId = in.readUint32Big();
|
||||
CAssetId txtrId = in.readUint32Big();
|
||||
float f1 = in.readFloatBig();
|
||||
float f2 = in.readFloatBig();
|
||||
zeus::CColor color = zeus::CColor::ReadRGBABig(in);
|
||||
if (txtrId == -1)
|
||||
if (!txtrId.IsValid())
|
||||
return {};
|
||||
|
||||
TToken<CTexture> tex = g_SimplePool->GetObj(SObjectTag{FOURCC('TXTR'), txtrId});
|
||||
|
||||
Reference in New Issue
Block a user