Bug fix inbase iteration.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 7 Feb 2005 20:05:12 +0000 (20:05 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 7 Feb 2005 20:05:12 +0000 (20:05 +0000)
events.c

index 4297e1d3c2f8194d10dc46d9a0f9197d32a3b287..a9da410909b97badf86f593851c40f6b83049509 100644 (file)
--- a/events.c
+++ b/events.c
@@ -177,7 +177,7 @@ void events(void)
                break;
            }
            i = 0;
-           for_commanders (j) {
+           for_starbases(j) {
                for_commanders(k)
                    if (game.state.baseqx[j]==game.state.cx[k] && game.state.baseqy[j]==game.state.cy[k] &&
                        (game.state.baseqx[j]!=quadx || game.state.baseqy[j]!=quady) &&