mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +08:00
31 lines
465 B
C++
31 lines
465 B
C++
|
|
#include "main.h"
|
|
|
|
CTextDrawPool::CTextDrawPool()
|
|
{
|
|
for (WORD wText = 0; wText < MAX_TEXT_DRAWS; wText++)
|
|
{
|
|
field_0[wText] = 0;
|
|
field_2000[wText] = 0;
|
|
field_4000[wText] = 0;
|
|
}
|
|
}
|
|
|
|
CTextDrawPool::~CTextDrawPool()
|
|
{
|
|
for (WORD wText = 0; wText < MAX_TEXT_DRAWS; wText++)
|
|
{
|
|
if(field_2000[wText])
|
|
{
|
|
free(field_2000[wText]);
|
|
field_2000[wText] = NULL;
|
|
}
|
|
if(field_4000[wText])
|
|
{
|
|
free(field_4000[wText]);
|
|
field_4000[wText] = NULL;
|
|
}
|
|
}
|
|
}
|
|
|