shithub: puzzles

Download patch

ref: 65b37d5dd5f863065cce72665dd8303fe1a08794
parent: 0d0619868dc344a039211f8fa1105fee88bd6f24
author: Simon Tatham <anakin@pobox.com>
date: Wed Jan 13 14:25:56 EST 2010

Placate optimiser.

[originally from svn r8838]

--- a/magnets.c
+++ b/magnets.c
@@ -1809,8 +1809,10 @@
             movech = ' ';
         else
             movech = '.';
-    } else
+    } else {
         assert(!"unknown action");
+	movech = 0;		       /* placate optimiser */
+    }
 
     sprintf(buf, "%c%d,%d", movech, gx, gy);