mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +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)
|
||||
{
|
||||
if(wLabelID >= MAX_LABELS) return FALSE;
|
||||
|
@ -14,6 +14,7 @@ private:
|
||||
BOOL m_bLabelSlotState[MAX_LABELS];
|
||||
public:
|
||||
CLabelPool();
|
||||
~CLabelPool();
|
||||
|
||||
BOOL Delete(WORD wLabelID);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user