commit
This commit is contained in:
@@ -104,6 +104,7 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic
|
||||
//if (nullptr == m_pMapInfo) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
m_pPlayerInfo = CPlayerInfo::Create(pDevice, pContext);
|
||||
if (nullptr == m_pPlayerInfo) {
|
||||
return E_FAIL;
|
||||
@@ -121,8 +122,6 @@ void CInfoInstance::Release_Information()
|
||||
{
|
||||
DestroyInstance();
|
||||
|
||||
|
||||
SAFE_RELEASE(m_pMapInfo);
|
||||
SAFE_RELEASE(m_pPlayerInfo);
|
||||
SAFE_RELEASE(m_pMonsterInfo);
|
||||
SAFE_RELEASE(m_pDevice);
|
||||
|
||||
@@ -91,7 +91,9 @@ HRESULT CMainApp::Start_Level(LEVEL eLevelID)
|
||||
if (nullptr == m_pInfoInstance) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
|
||||
if (FAILED(m_pInfoInstance->Initialize_Information(m_pDevice, m_pContext))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -166,9 +168,10 @@ void CMainApp::Free()
|
||||
|
||||
SAFE_RELEASE(m_pDevice);
|
||||
SAFE_RELEASE(m_pContext);
|
||||
|
||||
m_pInfoInstance->Release_Information();
|
||||
m_pGameInstance->Release_Engine();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
SAFE_RELEASE(m_pGameInstance);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user