aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/gfxcore.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-12 10:34:52 +1000
committerPaul Gilbert2012-05-12 10:34:52 +1000
commita153f9a2e633c788edd00b1c71c75377a3319e66 (patch)
treefbdc45d8727e0f2f8e9b4568798c4b0fd3f9dcfa /engines/tony/gfxcore.cpp
parent166980fa4f7aa29ef604307662ed04d21b26a211 (diff)
downloadscummvm-rg350-a153f9a2e633c788edd00b1c71c75377a3319e66.tar.gz
scummvm-rg350-a153f9a2e633c788edd00b1c71c75377a3319e66.tar.bz2
scummvm-rg350-a153f9a2e633c788edd00b1c71c75377a3319e66.zip
TONY: Explicitly initialise fields of various objects in their constructors
This fixes a crash when the pop-up inventory was displayed.
Diffstat (limited to 'engines/tony/gfxcore.cpp')
-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 de78b51a4e..344542b801 100644
--- a/engines/tony/gfxcore.cpp
+++ b/engines/tony/gfxcore.cpp
@@ -287,6 +287,7 @@ RMGfxClearTask RMGfxTargetBuffer::taskClear;
RMGfxTargetBuffer::RMGfxTargetBuffer() {
otlist = NULL;
+ m_otSize = 0;
csModifyingOT = g_system->createMutex();
}