diff options
Diffstat (limited to 'engines/hugo/util.cpp')
-rw-r--r-- | engines/hugo/util.cpp | 2 |
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; } |