From 61f59997bedc61acbe44a71491d0a0f38ff626f6 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 13 Oct 2013 09:15:59 +0200 Subject: 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. --- engines/tony/gfxcore.cpp | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3