Author: mordante
Date: Mon Jul 21 09:04:14 2008
New Revision: 28118
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28118&view=rev
Log:
Cleanup the coding style a bit.
Modified:
trunk/src/gamestatus.cpp
Modified: trunk/src/gamestatus.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gamestatus.cpp?rev=28118&r1=28117&r2=28118&view=diff
==============================================================================
--- trunk/src/gamestatus.cpp (original)
+++ trunk/src/gamestatus.cpp Mon Jul 21 09:04:14 2008
@@ -163,9 +163,11 @@
// search for all time areas that match the id.
std::vector<area_time_of_day>::iterator i = areas_.begin();
while(i != areas_.end()) {
- if((*i).id == area_id)
+ if((*i).id == area_id) {
i = areas_.erase(i);
- else ++i;
+ } else {
+ ++i;
+ }
}
}
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits