aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/util.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2010-08-20 16:35:20 +0000
committerArnaud Boutonné2010-08-20 16:35:20 +0000
commite81eab613374655022a592a055e7afe106765147 (patch)
treed78b2dedd9834b7d039f58762e32cc4e9d85a0f6 /engines/hugo/util.cpp
parent53bf93a8847c47f983a3ee25bffa8f6072ad82d4 (diff)
downloadscummvm-rg350-e81eab613374655022a592a055e7afe106765147.tar.gz
scummvm-rg350-e81eab613374655022a592a055e7afe106765147.tar.bz2
scummvm-rg350-e81eab613374655022a592a055e7afe106765147.zip
Hugo : Style - Add parenthesis around condition when conditional operator is used, as mentioned in Code Formatting Conventions
svn-id: r52230
Diffstat (limited to 'engines/hugo/util.cpp')
-rw-r--r--engines/hugo/util.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}