From 97e34d70768de971ea3e7ee04706f148c2032897 Mon Sep 17 00:00:00 2001
From: nehalmistry <>
Date: Fri, 21 Jun 2002 00:22:17 +0000
Subject: [PATCH] fixed small calculation error

---
 src/editor/editloop.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/editor/editloop.cpp b/src/editor/editloop.cpp
index 00fdcf568..9ddbd28fc 100644
--- a/src/editor/editloop.cpp
+++ b/src/editor/editloop.cpp
@@ -549,7 +549,7 @@ local void DrawUnitIcons(void)
 	VideoDraw(MenuButtonGfx.Sprite, MBUTTON_RIGHT_ARROW, x + j - 20, y);
     }
 
-    percent = UnitIndex * 100 / (MaxUnitIndex - 3);
+    percent = UnitIndex * 100 / (MaxUnitIndex / 9 * 9);
     i = (percent * (j - 54)) / 100;
     VideoDraw(MenuButtonGfx.Sprite, MBUTTON_S_KNOB, x + 18 + i, y + 1);