mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 05:01:43 +00:00
MOHAWK: Allow creation of LBCode instances without an associated BCOD.
This commit is contained in:
parent
2667b502d7
commit
d2035b34e0
@ -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…
x
Reference in New Issue
Block a user