From 498d8000ca6869e6fae2678b4ff61f21c0cea1b8 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Tue, 27 Apr 2010 08:59:13 +0000 Subject: Fix bug 2969257 (labels) and hopefully plug all the leaks. svn-id: r48811 --- engines/parallaction/exec_br.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/parallaction/exec_br.cpp') diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp index ec9f846459..d5d89616d2 100644 --- a/engines/parallaction/exec_br.cpp +++ b/engines/parallaction/exec_br.cpp @@ -96,7 +96,7 @@ void Parallaction_br::setupSubtitles(char *s, char *s2, int y) { _subtitle[1] = _gfx->createLabel(_labelFont, s2, color); _gfx->showLabel(_subtitle[1], CENTER_LABEL_HORIZONTAL, _subtitleY + 5 + _labelFont->height()); } else { - _subtitle[1] = -1; + _subtitle[1] = 0; } #if 0 // disabled because no references to lip sync has been found in the scripts _subtitleLipSync = 0; @@ -104,11 +104,11 @@ void Parallaction_br::setupSubtitles(char *s, char *s2, int y) { } void Parallaction_br::clearSubtitles() { - if (_subtitle[0] != -1) { + if (_subtitle[0]) { _gfx->hideLabel(_subtitle[0]); } - if (_subtitle[1] != -1) { + if (_subtitle[1]) { _gfx->hideLabel(_subtitle[1]); } } -- cgit v1.2.3