Skip to content

Commit 421ef30

Browse files
committed
Engine: Allow getting comments in getEntity()
1 parent edb788e commit 421ef30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/engine/internal/engine.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,11 @@ std::shared_ptr<Entity> Engine::getEntity(const std::string &id)
15061506
if (broadcast)
15071507
return std::static_pointer_cast<Entity>(broadcast);
15081508

1509+
// Comments
1510+
auto comment = getComment(id);
1511+
if (comment)
1512+
return std::static_pointer_cast<Entity>(comment);
1513+
15091514
return nullptr;
15101515
}
15111516

0 commit comments

Comments
 (0)