SA-MP/server/textdrawpool.cpp

31 lines
465 B
C++
Raw Normal View History

2023-11-25 23:10:24 +08:00
#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;
}
}
}