aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/ComponentManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/ComponentManager.h')
-rw-r--r--src/crepe/ComponentManager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/ComponentManager.h b/src/crepe/ComponentManager.h
index 810bc38..8462698 100644
--- a/src/crepe/ComponentManager.h
+++ b/src/crepe/ComponentManager.h
@@ -147,7 +147,7 @@ private:
components;
//! Persistent flag for each GameObject
- std::vector<bool> persistent = {false};
+ std::unordered_map<game_object_id_t, bool> persistent;
//! ID of next GameObject allocated by \c ComponentManager::new_object
game_object_id_t next_id = 0;