Updated storage entity id system

This commit is contained in:
Andrew nuark G 2020-12-15 16:57:38 +07:00
parent b0edbda4fe
commit 4f1b0346c6

View file

@ -4,7 +4,7 @@
unsigned long long storage_entity::__global_id = 0;
storage_entity::storage_entity(unsigned int capacity) : _capacity(capacity) {
this->_id = storage_entity::__global_id++;
this->_id = ++storage_entity::__global_id;
}