LAB: Simplify tab handling
This commit is contained in:
parent
3740560153
commit
23ace32e09
2 changed files with 8 additions and 12 deletions
|
@ -202,6 +202,13 @@ void LabEngine::setCurrentClose(Common::Point pos, CloseDataPtr *closePtrList, b
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// If we got here, no match was found. If we want the "next" close-up,
|
||||
// return the first one in the list, if any.
|
||||
if (next) {
|
||||
if (!list->empty())
|
||||
*closePtrList = &(*list->begin());
|
||||
}
|
||||
}
|
||||
|
||||
bool LabEngine::takeItem(Common::Point pos, CloseDataPtr *closePtrList) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue