Author: mordante
Date: Mon Aug 29 21:40:35 2011
New Revision: 50946
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50946&view=rev
Log:
Limit variable scope.
Issue found by cppcheck.
Modified:
trunk/src/gui/dialogs/gamestate_inspector.cpp
Modified: trunk/src/gui/dialogs/gamestate_inspector.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/gamestate_inspector.cpp?rev=50946&r1=50945&r2=50946&view=diff
==============================================================================
--- trunk/src/gui/dialogs/gamestate_inspector.cpp (original)
+++ trunk/src/gui/dialogs/gamestate_inspector.cpp Mon Aug 29 21:40:35 2011
@@ -289,8 +289,8 @@
return;
}
- int i = 0;///@todo replace with precached data
if(resources::units) {
+ int i = 0;///@todo replace with precached data
for(unit_map::iterator u = resources::units->begin()
; u != resources::units->end()
; ++u) {
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits