mirror of
https://github.com/HarbourMasters/Starship
synced 2026-06-19 07:57:08 -04:00
Fixed ptr validation
This commit is contained in:
committed by
Sonic Dreamcaster
parent
ce173c122d
commit
4b25a0148f
@@ -13,6 +13,6 @@ template <typename T> T LoadChild(uint64_t crc) {
|
||||
return nullptr;
|
||||
}
|
||||
auto asset = Ship::Context::GetInstance()->GetResourceManager()->LoadResourceProcess(path);
|
||||
return asset ? static_cast<T>(asset->GetRawPointer()) : nullptr;
|
||||
return asset != nullptr ? static_cast<T>(asset->GetRawPointer()) : nullptr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user