This commit is contained in:
GiJungSUk
2025-12-03 10:06:52 +09:00
parent 3aa4dcce5a
commit f8abde1660
2 changed files with 5 additions and 3 deletions
@@ -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);
+4 -1
View File
@@ -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);
}