aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorTorbjörn Andersson2007-05-22 16:11:30 +0000
committerTorbjörn Andersson2007-05-22 16:11:30 +0000
commitb17e8f569ff6942494d3d55ff908a2a7ca837fac (patch)
tree588dcaec07b115677ef1c942afdd7b2d19a391f0 /engines/agos
parent91be2f19cc1b8be80154651ee27339d71db3dbc6 (diff)
downloadscummvm-rg350-b17e8f569ff6942494d3d55ff908a2a7ca837fac.tar.gz
scummvm-rg350-b17e8f569ff6942494d3d55ff908a2a7ca837fac.tar.bz2
scummvm-rg350-b17e8f569ff6942494d3d55ff908a2a7ca837fac.zip
Silenced a rather paranoid GCC warning.
svn-id: r26924
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/saveload.cpp6
1 files 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;