From 6da8e5f4757e3b5445cf5b2ec4dcbfd333e4671f Mon Sep 17 00:00:00 2001
From: martinxyz <>
Date: Mon, 13 Oct 2003 08:38:01 +0000
Subject: [PATCH] temporary warning fix

---
 src/ui/mainscr.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/ui/mainscr.cpp b/src/ui/mainscr.cpp
index b8cd398e5..de446dd2c 100644
--- a/src/ui/mainscr.cpp
+++ b/src/ui/mainscr.cpp
@@ -202,7 +202,11 @@ global void DrawUnitInfo(const Unit* unit)
 	VideoDrawText(TheUI.SingleSelectedTextX, TheUI.SingleSelectedTextY,
 	    TheUI.SingleSelectedFont, TheUI.SingleSelectedText);
     }
-    if (TheUI.SingleSelectedButton) {
+
+    // FIXME: allow without button
+    //if (TheUI.SingleSelectedButton) {
+    DebugCheck(!TheUI.SingleSelectedButton);
+    if (1) {
 	x = TheUI.SingleSelectedButton->X;
 	y = TheUI.SingleSelectedButton->Y;
 	DrawUnitIcon(unit->Player, type->Icon.Icon,