mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 21:07:42 +00:00
Better null-tag handling; integrate CSaveWorld and CMapWorld loading
This commit is contained in:
@@ -11,6 +11,9 @@ CSimplePool::CSimplePool(IFactory& factory)
|
||||
|
||||
CToken CSimplePool::GetObj(const SObjectTag& tag, const CVParamTransfer& paramXfer)
|
||||
{
|
||||
if (!tag)
|
||||
return {};
|
||||
|
||||
auto iter = x4_resources.find(tag);
|
||||
if (iter != x4_resources.end())
|
||||
return CToken(iter->second);
|
||||
|
||||
Reference in New Issue
Block a user