- [NEW] actor::getLast()

This commit is contained in:
2024-06-13 13:27:49 +02:00
parent ad4cef1cd1
commit 115685046a
2 changed files with 12 additions and 0 deletions

View File

@@ -23,6 +23,14 @@ namespace actor
return first;
}
actor_t *getLast()
{
if (!first) return nullptr;
actor_t *last = first;
while(last->next) last = last->next;
return last;
}
actor_t *getSelected()
{
return selected;