mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 05:07:43 +00:00
Fix invalid asset ID handling in CGuiModel and CAuiImagePane
This commit is contained in:
@@ -11,7 +11,7 @@ namespace urde
|
||||
CGuiModel::CGuiModel(const CGuiWidgetParms& parms, CSimplePool* sp, CAssetId modelId, u32 lightMask, bool flag)
|
||||
: CGuiWidget(parms), x108_modelId(modelId), x10c_lightMask(lightMask)
|
||||
{
|
||||
if (!flag || modelId == 0xffffffff ||
|
||||
if (!flag || !modelId.IsValid() ||
|
||||
parms.x0_frame->GetGuiSys().GetUsageMode() == CGuiSys::EUsageMode::Two)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user