From 0d3eab168f51ac5f7e9d74fa09879f96bf1768d3 Mon Sep 17 00:00:00 2001
From: johns <>
Date: Sun, 9 Jul 2000 15:30:05 +0000
Subject: [PATCH] Added FIXME: The Selection by unit-type should select the 9
 nearest units.

---
 src/stratagus/selection.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/stratagus/selection.cpp b/src/stratagus/selection.cpp
index 187d6ad79..5d35138b1 100644
--- a/src/stratagus/selection.cpp
+++ b/src/stratagus/selection.cpp
@@ -168,12 +168,14 @@ global int ToggleSelectUnit(Unit* unit)
  **	@return		Number of units found, 0 means selection unchanged
  **
  **	FIXME: 0 can't happen. Maybe when scripting will use it?
+ **
+ **	FIXME: should always select the nearest 9 units to the base!
  */
 global int SelectUnitsByType(Unit* base)
 {
     Unit* unit;
     Unit* table[MAX_UNITS];
-    UnitType* type;
+    const UnitType* type;
     int r;
     int i;