diff options
author | uruk | 2014-08-03 11:59:55 +0200 |
---|---|---|
committer | uruk | 2014-08-03 11:59:55 +0200 |
commit | 00bb645e5411d00fb3cfe7bbbe530507d5157a23 (patch) | |
tree | ff9c997890b4360fc0475380da90b9f9e7c2c25c /engines/cge2 | |
parent | 241d07ff07c0002481fb81938066c675c5139df5 (diff) | |
download | scummvm-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.cpp | 2 |
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; |