MOHAWK: Allow creation of LBCode instances without an associated BCOD.

This commit is contained in:
Alyssa Milburn 2011-07-02 00:11:44 +02:00
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();