diff options
Diffstat (limited to 'engines/lure/res_struct.h')
-rw-r--r-- | engines/lure/res_struct.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/lure/res_struct.h b/engines/lure/res_struct.h index 6671ab118d..afb8ee9153 100644 --- a/engines/lure/res_struct.h +++ b/engines/lure/res_struct.h @@ -467,6 +467,11 @@ public: bool isEmpty() { return _actions.begin() == _actions.end(); } void clear() { _actions.clear(); } CurrentActionEntry &top() { return **_actions.begin(); } + CurrentActionEntry &bottom() { + ActionsList::iterator i = _actions.end(); + --i; + return **i; + } CurrentAction action() { return isEmpty() ? NO_ACTION : top().action(); } void pop() { _actions.erase(_actions.begin()); } int size() { return _actions.size(); } |