Core: Use std::array for managing kernel object space

These avoid relying on memset for clearing the arrays.
This commit is contained in:
Lioncash 2014-08-19 00:20:56 -04:00
parent e9c5c563a5
commit ab4648d3ca
2 changed files with 5 additions and 5 deletions

View file

@ -4,6 +4,7 @@
#pragma once
#include <array>
#include <string>
#include "common/common.h"
@ -160,9 +161,9 @@ private:
INITIAL_NEXT_ID = 0x10,
};
Object* pool[MAX_COUNT];
bool occupied[MAX_COUNT];
int next_id;
std::array<Object*, MAX_COUNT> pool;
std::array<bool, MAX_COUNT> occupied;
int next_id;
};
extern ObjectPool g_object_pool;