- [NEW] actor::getLast()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user