From 4f1b0346c6a8f75df3f2f6e400875f1a30912cd0 Mon Sep 17 00:00:00 2001 From: Andrew nuark G Date: Tue, 15 Dec 2020 16:57:38 +0700 Subject: [PATCH] Updated storage entity id system --- entities/storage_entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }