From b17e8f569ff6942494d3d55ff908a2a7ca837fac Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 22 May 2007 16:11:30 +0000 Subject: Silenced a rather paranoid GCC warning. svn-id: r26924 --- engines/agos/saveload.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp index bd9efcc81c..de3a0f416a 100644 --- a/engines/agos/saveload.cpp +++ b/engines/agos/saveload.cpp @@ -166,7 +166,7 @@ void AGOSEngine::listSaveGames(char *dst) { window->textColumn = 0; window->textColumnOffset = 4; window->textLength = 0; - if (in = _saveFileMan->openForLoading(genSaveName(slot++))) { + if ((in = _saveFileMan->openForLoading(genSaveName(slot++)))) { in->read(dst, 8); delete in; @@ -181,7 +181,7 @@ void AGOSEngine::listSaveGames(char *dst) { window->textColumn = 7; window->textColumnOffset = 4; window->textLength = 0; - if (in = _saveFileMan->openForLoading(genSaveName(slot++))) { + if ((in = _saveFileMan->openForLoading(genSaveName(slot++)))) { in->read(dst, 8); delete in; @@ -196,7 +196,7 @@ void AGOSEngine::listSaveGames(char *dst) { window->textColumn = 15; window->textColumnOffset = 4; window->textLength = 0; - if (in = _saveFileMan->openForLoading(genSaveName(slot++))) { + if ((in = _saveFileMan->openForLoading(genSaveName(slot++)))) { in->read(dst, 8); delete in; -- cgit v1.2.3