use array instead of vector

This commit is contained in:
Kaki 2021-12-29 14:57:58 +01:00
parent 6cd2d56a62
commit 8dfa7cd14e

View File

@ -21,11 +21,12 @@ namespace big
{
QUEUE_JOB_BEGIN_CLAUSE()
{
std::vector<int> blips = {1, 57, 128, 129, 130, 143, 144, 145, 146, 271, 286, 287, 288};
for (int i = 0; i < blips.size(); i++) {
static const int blips[] = {1, 57, 128, 129, 130, 143, 144, 145, 146, 271, 286, 287, 288};
for (int i = 0; i < (sizeof(blips)/sizeof(*blips)); i++) {
if (teleport::to_blip(blips[i], 5)) {
break;
}
}
}QUEUE_JOB_END_CLAUSE
}