mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
MOHAWK: Destroying an LBGroupItem destroys the whole group.
This commit is contained in:
parent
ad7b6f6817
commit
bd526aac1d
engines/mohawk
@ -2909,6 +2909,16 @@ void LBGroupItem::readData(uint16 type, uint16 size, Common::SeekableSubReadStre
|
||||
}
|
||||
}
|
||||
|
||||
void LBGroupItem::destroySelf() {
|
||||
LBItem::destroySelf();
|
||||
|
||||
for (uint i = 0; i < _groupEntries.size(); i++) {
|
||||
LBItem *item = _vm->getItemById(_groupEntries[i].entryId);
|
||||
if (item)
|
||||
item->destroySelf();
|
||||
}
|
||||
}
|
||||
|
||||
void LBGroupItem::setEnabled(bool enabled) {
|
||||
if (_starting) {
|
||||
_starting = false;
|
||||
|
@ -424,6 +424,7 @@ public:
|
||||
|
||||
void readData(uint16 type, uint16 size, Common::SeekableSubReadStreamEndian *stream);
|
||||
|
||||
void destroySelf();
|
||||
void setEnabled(bool enabled);
|
||||
void setGlobalEnabled(bool enabled);
|
||||
bool contains(Common::Point point);
|
||||
|
Loading…
Reference in New Issue
Block a user