aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2011-07-02 01:27:19 +0200
committerAlyssa Milburn2011-07-02 01:27:19 +0200
commit925347bd4d0e39f91665c7d2b4e6395d640ed6cb (patch)
tree5515200cab48d9d077d01bc7e0b10bad4d28547d
parent5ba4e839b524c67aa09ff507a4870701ab68e840 (diff)
downloadscummvm-rg350-925347bd4d0e39f91665c7d2b4e6395d640ed6cb.tar.gz
scummvm-rg350-925347bd4d0e39f91665c7d2b4e6395d640ed6cb.tar.bz2
scummvm-rg350-925347bd4d0e39f91665c7d2b4e6395d640ed6cb.zip
MOHAWK: Don't allocate zero-size array.
-rw-r--r--engines/mohawk/livingbooks_code.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks_code.cpp b/engines/mohawk/livingbooks_code.cpp
index 21b98424f6..95f3261787 100644
--- a/engines/mohawk/livingbooks_code.cpp
+++ b/engines/mohawk/livingbooks_code.cpp
@@ -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;
}