Author: sapient
Date: Mon Jul 2 02:27:35 2007
New Revision: 18611
URL: http://svn.gna.org/viewcvs/wesnoth?rev=18611&view=rev
Log:
minor correction to respect loop-scoping for other platforms
Modified:
trunk/src/widgets/menu.cpp
Modified: trunk/src/widgets/menu.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/widgets/menu.cpp?rev=18611&r1=18610&r2=18611&view=diff
==============================================================================
--- trunk/src/widgets/menu.cpp (original)
+++ trunk/src/widgets/menu.cpp Mon Jul 2 02:27:35 2007
@@ -1005,7 +1005,8 @@
{
std::vector<int> const &widths = column_widths();
x -= location().x;
- for(int j = -1, j_end = widths.size(); x >= 0; x -= widths[j]) {
+ int j, j_end = widths.size();
+ for(j = -1; x >= 0; x -= widths[j]) {
if(++j == j_end) {
return -1;
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits