From e81eab613374655022a592a055e7afe106765147 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Fri, 20 Aug 2010 16:35:20 +0000 Subject: Hugo : Style - Add parenthesis around condition when conditional operator is used, as mentioned in Code Formatting Conventions svn-id: r52230 --- engines/hugo/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/hugo/util.cpp') diff --git a/engines/hugo/util.cpp b/engines/hugo/util.cpp index f623583fd1..ad7b9fe39e 100644 --- a/engines/hugo/util.cpp +++ b/engines/hugo/util.cpp @@ -200,7 +200,7 @@ void Utils::Debug_out(char *format, ...) { if (HugoEngine::get().getGameStatus().debugFl) { /* Create/truncate if first call, else append */ - if ((fp = fopen("debug.txt", fp == NULL ? "w" : "a")) == NULL) { + if ((fp = fopen("debug.txt", (fp == NULL) ? "w" : "a")) == NULL) { Error(WRITE_ERR, "debug.txt"); return; } -- cgit v1.2.3