File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1486,11 +1486,6 @@ std::shared_ptr<Comment> Engine::getComment(const std::string &id)
1486
1486
// Returns the entity with the given ID. \see IEntity
1487
1487
std::shared_ptr<Entity> Engine::getEntity (const std::string &id)
1488
1488
{
1489
- // Blocks
1490
- auto block = getBlock (id);
1491
- if (block)
1492
- return std::static_pointer_cast<Entity>(block);
1493
-
1494
1489
// Variables
1495
1490
auto variable = getVariable (id);
1496
1491
if (variable)
@@ -1506,6 +1501,11 @@ std::shared_ptr<Entity> Engine::getEntity(const std::string &id)
1506
1501
if (broadcast)
1507
1502
return std::static_pointer_cast<Entity>(broadcast);
1508
1503
1504
+ // Blocks
1505
+ auto block = getBlock (id);
1506
+ if (block)
1507
+ return std::static_pointer_cast<Entity>(block);
1508
+
1509
1509
// Comments
1510
1510
auto comment = getComment (id);
1511
1511
if (comment)
You can’t perform that action at this time.
0 commit comments