From 00bb645e5411d00fb3cfe7bbbe530507d5157a23 Mon Sep 17 00:00:00 2001 From: uruk Date: Sun, 3 Aug 2014 11:59:55 +0200 Subject: CGE2: Fix mismatched new/delete pair in Sprite::ghost() and snGhost(). --- engines/cge2/vga13h.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/cge2') 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; -- cgit v1.2.3