aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2013-10-13 09:15:59 +0200
committerTorbjörn Andersson2013-10-13 09:15:59 +0200
commit61f59997bedc61acbe44a71491d0a0f38ff626f6 (patch)
tree3c6fc2f025b66e3b17f03d593182007bcd387ae8 /engines
parentf1797a3820d5b2e6397892e580f856683d2d5f7f (diff)
downloadscummvm-rg350-61f59997bedc61acbe44a71491d0a0f38ff626f6.tar.gz
scummvm-rg350-61f59997bedc61acbe44a71491d0a0f38ff626f6.tar.bz2
scummvm-rg350-61f59997bedc61acbe44a71491d0a0f38ff626f6.zip
TONY: Initialise _buf and _origBuf in second RMGfxBuffer constructor
I think this fixes CID 1086888, but I haven't been able to find where in the game this constructor is used.
Diffstat (limited to 'engines')
-rw-r--r--engines/tony/gfxcore.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp
index 410f9b8971..3433ad3024 100644
--- a/engines/tony/gfxcore.cpp
+++ b/engines/tony/gfxcore.cpp
@@ -117,6 +117,7 @@ RMGfxBuffer::operator void *() {
}
RMGfxBuffer::RMGfxBuffer(int dimx, int dimy, int nBpp) {
+ _origBuf = _buf = NULL;
create(dimx, dimy, nBpp);
}