From: Tobias Gläßer Date: Wed, 28 Jul 2004 23:33:23 +0000 (+0000) Subject: fix for the compilation problem of many pre gcc3.4.x users. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ef0d2a4018e5496fbb81645b928044bae4fb47db;p=supertux.git fix for the compilation problem of many pre gcc3.4.x users. SVN-Revision: 1663 --- diff --git a/lib/gui/menu.cpp b/lib/gui/menu.cpp index e060e39a6..b23ff784b 100644 --- a/lib/gui/menu.cpp +++ b/lib/gui/menu.cpp @@ -509,7 +509,8 @@ Menu::draw_item(DrawingContext& context, int text_width = int(text_font->get_text_width(pitem.text)); int input_width = int(text_font->get_text_width(pitem.input) + 10); int list_width = 0; - if(pitem.list.second != 0) + std::set::iterator tmp = 0; + if(pitem.list.second != tmp) list_width = int(text_font->get_text_width((*pitem.list.second))); if (arrange_left)