We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b167c70 commit 276d1cbCopy full SHA for 276d1cb
attachments/simple_engine/engine.cpp
@@ -191,7 +191,7 @@ Entity* Engine::CreateEntity(const std::string& name) {
191
return rawPtr;
192
}
193
194
-Entity* Engine::GetEntity(const std::string& name) const {
+Entity* Engine::GetEntity(const std::string& name) {
195
auto it = entityMap.find(name);
196
if (it != entityMap.end()) {
197
return it->second;
attachments/simple_engine/engine.h
@@ -67,7 +67,7 @@ class Engine {
67
* @param name The name of the entity.
68
* @return A pointer to the entity, or nullptr if not found.
69
*/
70
- Entity* GetEntity(const std::string& name) const;
+ Entity* GetEntity(const std::string& name);
71
72
/**
73
* @brief Remove an entity.
0 commit comments