aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2
diff options
context:
space:
mode:
authoruruk2014-08-03 11:59:55 +0200
committeruruk2014-08-03 11:59:55 +0200
commit00bb645e5411d00fb3cfe7bbbe530507d5157a23 (patch)
treeff9c997890b4360fc0475380da90b9f9e7c2c25c /engines/cge2
parent241d07ff07c0002481fb81938066c675c5139df5 (diff)
downloadscummvm-rg350-00bb645e5411d00fb3cfe7bbbe530507d5157a23.tar.gz
scummvm-rg350-00bb645e5411d00fb3cfe7bbbe530507d5157a23.tar.bz2
scummvm-rg350-00bb645e5411d00fb3cfe7bbbe530507d5157a23.zip
CGE2: Fix mismatched new/delete pair in Sprite::ghost() and snGhost().
Diffstat (limited to 'engines/cge2')
-rw-r--r--engines/cge2/vga13h.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge2/vga13h.cpp b/engines/cge2/vga13h.cpp
index 812aabf8f3..486a42259f 100644
--- a/engines/cge2/vga13h.cpp
+++ b/engines/cge2/vga13h.cpp
@@ -694,7 +694,7 @@ BitmapPtr Sprite::ghost() {
bmp->_h = e->_b1->_h;
bmp->_b = new HideDesc[bmp->_h];
memcpy(bmp->_b, e->_b1->_b, sizeof(HideDesc)* bmp->_h);
- uint8 *v = new uint8;
+ uint8 *v = new uint8[1];
*v = (e->_p1.y << 16) + e->_p1.x;
bmp->_v = v;
bmp->_map = (e->_p1.y << 16) + e->_p1.x;