mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +08:00
[saco] Implement/match CNewPlayerTags destructor
This commit is contained in:
parent
efbb695cae
commit
e7af6d933f
@ -10,6 +10,12 @@ CNewPlayerTags::CNewPlayerTags(IDirect3DDevice9* pDevice)
|
|||||||
D3DXCreateSprite(pDevice, &m_pSprite);
|
D3DXCreateSprite(pDevice, &m_pSprite);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CNewPlayerTags::~CNewPlayerTags()
|
||||||
|
{
|
||||||
|
if(m_pStates) m_pStates->Release();
|
||||||
|
SAFE_DELETE(m_pSprite);
|
||||||
|
}
|
||||||
|
|
||||||
void CNewPlayerTags::RestoreDeviceObjects()
|
void CNewPlayerTags::RestoreDeviceObjects()
|
||||||
{
|
{
|
||||||
if(m_pSprite)
|
if(m_pSprite)
|
||||||
|
@ -10,6 +10,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
CNewPlayerTags(IDirect3DDevice9* pDevice);
|
CNewPlayerTags(IDirect3DDevice9* pDevice);
|
||||||
|
~CNewPlayerTags();
|
||||||
|
|
||||||
void RestoreDeviceObjects();
|
void RestoreDeviceObjects();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user