diff --git a/entities/storage_entity.cpp b/entities/storage_entity.cpp index ee7a6a0..b198c38 100644 --- a/entities/storage_entity.cpp +++ b/entities/storage_entity.cpp @@ -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; }