mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[saco] Implement/match CLabelPool destructor
This commit is contained in:
parent
61936ebf93
commit
5048ebb8bf
@ -10,6 +10,17 @@ CLabelPool::CLabelPool()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CLabelPool::~CLabelPool()
|
||||||
|
{
|
||||||
|
for(WORD wLabelID = 0; wLabelID < MAX_LABELS; wLabelID++)
|
||||||
|
{
|
||||||
|
if(m_bLabelSlotState[wLabelID])
|
||||||
|
{
|
||||||
|
Delete(wLabelID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
BOOL CLabelPool::Delete(WORD wLabelID)
|
BOOL CLabelPool::Delete(WORD wLabelID)
|
||||||
{
|
{
|
||||||
if(wLabelID >= MAX_LABELS) return FALSE;
|
if(wLabelID >= MAX_LABELS) return FALSE;
|
||||||
|
@ -14,6 +14,7 @@ private:
|
|||||||
BOOL m_bLabelSlotState[MAX_LABELS];
|
BOOL m_bLabelSlotState[MAX_LABELS];
|
||||||
public:
|
public:
|
||||||
CLabelPool();
|
CLabelPool();
|
||||||
|
~CLabelPool();
|
||||||
|
|
||||||
BOOL Delete(WORD wLabelID);
|
BOOL Delete(WORD wLabelID);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user