Fixed crash when creating new projects

This commit is contained in:
Aruki
2019-02-04 23:15:20 -07:00
parent 1baa48de34
commit b49f19c386
14 changed files with 57 additions and 43 deletions

View File

@@ -32,7 +32,7 @@ class CResourceFactory
CResourceFactory() {}
public:
static CResource* SpawnResource(CResourceEntry *pEntry)
static CResource* CreateResource(CResourceEntry *pEntry)
{
switch (pEntry->ResourceType())
{
@@ -58,7 +58,7 @@ public:
case EResourceType::StringTable: return new CStringTable(pEntry);
case EResourceType::Texture: return new CTexture(pEntry);
case EResourceType::World: return new CWorld(pEntry);
default: return nullptr; // should it return a CResource instead?
default: return nullptr; // should it return a CResource instead?
}
}