From 85ae4b874262012af277492beb0c45cb4d86feef Mon Sep 17 00:00:00 2001 From: max-001 Date: Tue, 26 Nov 2024 09:47:46 +0100 Subject: Renamed componentArray to component_array --- src/crepe/ComponentManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/crepe/ComponentManager.cpp') diff --git a/src/crepe/ComponentManager.cpp b/src/crepe/ComponentManager.cpp index 68b5edb..5b73009 100644 --- a/src/crepe/ComponentManager.cpp +++ b/src/crepe/ComponentManager.cpp @@ -17,11 +17,11 @@ void ComponentManager::delete_all_components_of_id(game_object_id_t id) { } // Loop through all the types (in the unordered_map<>) - for (auto & [type, componentArray] : this->components) { + for (auto & [type, component_array] : this->components) { // Make sure that the id (that we are looking for) is within the boundaries of the vector<> - if (id < componentArray.size()) { + if (id < component_array.size()) { // Clear the components at this specific id - componentArray[id].clear(); + component_array[id].clear(); } } } -- cgit v1.2.3