summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-04 17:27:38 +0000
committersmatz <smatz@openttd.org>2008-04-04 17:27:38 +0000
commite5d4ee30d37dfa0ed34fe176c19a669ba3e992ba (patch)
tree7a31a82c2cefce97907ee4e6852bde77d73cd617 /src/misc.cpp
parent8a2762978c9d315a30a146bcb47b7d39ee5ca582 (diff)
downloadopenttd-e5d4ee30d37dfa0ed34fe176c19a669ba3e992ba.tar.xz
(svn r12565) -Cleanup: variable scope in misc\*.cpp
Diffstat (limited to 'src/misc.cpp')
-rw-r--r--src/misc.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index b13200522..a9c65b774 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -481,9 +481,8 @@ static void Load_CHTS()
{
Cheat* cht = (Cheat*)&_cheats;
uint count = SlGetFieldLength() / 2;
- uint i;
- for (i = 0; i < count; i++) {
+ for (uint i = 0; i < count; i++) {
cht[i].been_used = (SlReadByte() != 0);
cht[i].value = (SlReadByte() != 0);
}