Fix crash for missing assets.
This commit is contained in:
parent
23b8a60765
commit
e79ac58f8e
@ -223,7 +223,7 @@ namespace Components
|
||||
if (!header.data)
|
||||
{
|
||||
header = Game::DB_FindXAssetHeader(type, filename.data());
|
||||
Components::AssetHandler::StoreTemporaryAsset(type, header); // Might increase efficiency...
|
||||
if(header.data) Components::AssetHandler::StoreTemporaryAsset(type, header); // Might increase efficiency...
|
||||
}
|
||||
|
||||
return header;
|
||||
|
Loading…
Reference in New Issue
Block a user