[Wesnoth-cvs-commits] wesnoth/src playturn.cpp (June 19, 2005 - 15:33)

 

CVSROOT:	/cvsroot/wesnoth
Module name:	wesnoth
Branch: 	
Changes by:	David White <Sirp@xxxxxxxxxxxxxxxx>	05/06/19 13:04:37

Modified files:
	src            : playturn.cpp 

Log message:
	fixed off-by-one error in unit list

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playturn.cpp.diff?tr1=1.381&tr2=1.382&r1=text&r2=text

Patches:
Index: wesnoth/src/playturn.cpp
diff -u wesnoth/src/playturn.cpp:1.381 wesnoth/src/playturn.cpp:1.382
--- wesnoth/src/playturn.cpp:1.381	Sat Jun  4 23:21:06 2005
+++ wesnoth/src/playturn.cpp	Sun Jun 19 13:04:37 2005
@@ -1,4 +1,4 @@
-/* $Id: playturn.cpp,v 1.381 2005/06/04 23:21:06 Sirp Exp $ */
+/* $Id: playturn.cpp,v 1.382 2005/06/19 13:04:37 Sirp Exp $ */
 /*
    Copyright (C) 2003 by David White <davidnwhite@xxxxxxxxxxx>
    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -2259,12 +2259,6 @@
 
 		items.push_back(row.str());
 
-		//extra unit for the first row to make up the heading
-		if(units_list.empty()) {
-			locations_list.push_back(i->first);
-			units_list.push_back(i->second);
-		}
-
 		locations_list.push_back(i->first);
 		units_list.push_back(i->second);
 	}



You are on the gna.org mail server.

Generated by mhonarc, Tue Sep 20 16:50:17 2005