MOHAWK: Allow creation of LBCode instances without an associated BCOD.
This commit is contained in:
parent
2667b502d7
commit
d2035b34e0
1 changed files with 6 additions and 0 deletions
|
@ -127,6 +127,12 @@ Common::Rect LBValue::toRect() const {
|
|||
}
|
||||
|
||||
LBCode::LBCode(MohawkEngine_LivingBooks *vm, uint16 baseId) : _vm(vm) {
|
||||
if (!baseId) {
|
||||
_data = new byte[0];
|
||||
_size = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
Common::SeekableSubReadStreamEndian *bcodStream = _vm->wrapStreamEndian(ID_BCOD, baseId);
|
||||
|
||||
uint32 totalSize = bcodStream->readUint32();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue