summaryrefslogtreecommitdiff
path: root/src/debug.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-07-24 10:14:39 +0000
committeralberth <alberth@openttd.org>2010-07-24 10:14:39 +0000
commitbe6c0584240caf420b2475a0be036391e842e8af (patch)
tree6111751cf5526e1eb41176782d84766c4e9ed185 /src/debug.cpp
parent645b6ce77345867fa96861843197481131566c46 (diff)
downloadopenttd-be6c0584240caf420b2475a0be036391e842e8af.tar.xz
(svn r20211) -Codechange: Indented code should have curly braces around it.
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index 85c42bdaf..a13cb0efa 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -142,11 +142,12 @@ void SetDebugString(const char *s)
/* check debugging levels */
p = NULL;
- for (i = debug_level; i != endof(debug_level); ++i)
+ for (i = debug_level; i != endof(debug_level); ++i) {
if (s == t + strlen(i->name) && strncmp(t, i->name, s - t) == 0) {
p = i->level;
break;
}
+ }
if (*s == '=') s++;
v = strtoul(s, &end, 0);