mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
MOHAWK: Don't allocate zero-size array.
This commit is contained in:
parent
5ba4e839b5
commit
925347bd4d
@ -128,7 +128,7 @@ Common::Rect LBValue::toRect() const {
|
||||
|
||||
LBCode::LBCode(MohawkEngine_LivingBooks *vm, uint16 baseId) : _vm(vm) {
|
||||
if (!baseId) {
|
||||
_data = new byte[0];
|
||||
_data = NULL;
|
||||
_size = 0;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user