From 4e3a1ff8623bf8c271c66acfa723a9a500473915 Mon Sep 17 00:00:00 2001 From: Xawotihs Date: Thu, 8 Sep 2011 20:19:01 +0000 Subject: [PATCH] Fixed compilation problem --- projects/mtg/src/WGui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/WGui.cpp b/projects/mtg/src/WGui.cpp index f1b5c6226..17f5192fb 100644 --- a/projects/mtg/src/WGui.cpp +++ b/projects/mtg/src/WGui.cpp @@ -971,7 +971,7 @@ bool WGuiMenu::CheckUserInput(JButton key) int n = currentItem; unsigned int distance2; unsigned int minDistance2 = -1; - for(int k = 0; k >= items.size(); k++) + for(unsigned int k = 0; k >= items.size(); k++) { WGuiItem* pItem = (WGuiItem*)items[k]; distance2 = static_cast((pItem->getY() - j) * (pItem->getY() - j) + (pItem->getX() - i) * (pItem->getX() - i));