MOHAWK: Don't allocate zero-size array.

This commit is contained in:
Alyssa Milburn 2011-07-02 01:27:19 +02:00
parent 5ba4e839b5
commit 925347bd4d

View File

@ -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;
}