buf needs to be used in IFDEF if declared in IFDEF
authornemo
Wed, 05 May 2010 15:40:44 +0000
changeset 3426 4ec21c6d6d33
parent 3425 ead2ed20dfd4
child 3427 b49ed5673727
buf needs to be used in IFDEF if declared in IFDEF
hedgewars/CCHandlers.inc
--- a/hedgewars/CCHandlers.inc	Wed May 05 08:01:37 2010 +0000
+++ b/hedgewars/CCHandlers.inc	Wed May 05 15:40:44 2010 +0000
@@ -687,11 +687,11 @@
 {$ENDIF}
 begin
     s:= s; // avoid compiler hint
-    buf[0]:= char(0); // avoid compiler hint
     if Length(s) = 0 then cFullScreen:= not cFullScreen
     else cFullScreen:= s = '1';
 
 {$IFDEF DEBUGFILE}
+    buf[0]:= char(0); // avoid compiler hint
     AddFileLog('Prepare to change video parameters...');
 {$ENDIF}