Skip to content

Commit 276d1cb

Browse files
committed
addressing more comments.
1 parent b167c70 commit 276d1cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

attachments/simple_engine/engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Entity* Engine::CreateEntity(const std::string& name) {
191191
return rawPtr;
192192
}
193193

194-
Entity* Engine::GetEntity(const std::string& name) const {
194+
Entity* Engine::GetEntity(const std::string& name) {
195195
auto it = entityMap.find(name);
196196
if (it != entityMap.end()) {
197197
return it->second;

attachments/simple_engine/engine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Engine {
6767
* @param name The name of the entity.
6868
* @return A pointer to the entity, or nullptr if not found.
6969
*/
70-
Entity* GetEntity(const std::string& name) const;
70+
Entity* GetEntity(const std::string& name);
7171

7272
/**
7373
* @brief Remove an entity.

0 commit comments

Comments
 (0)