mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 18:24:55 +00:00
General resource handling bug fixes
This commit is contained in:
@@ -164,7 +164,7 @@ bool CResLoader::ResourceExists(const SObjectTag& tag)
|
||||
|
||||
FourCC CResLoader::GetResourceTypeById(CAssetId id) const
|
||||
{
|
||||
if (FindResource(id))
|
||||
if (id.IsValid() && FindResource(id))
|
||||
return x50_cachedResInfo->GetType();
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user