Fix crash for missing assets.

This commit is contained in:
momo5502 2016-01-28 17:58:35 +01:00
parent 23b8a60765
commit e79ac58f8e

View File

@ -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;