summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-06-02 15:48:28 +0000
committerDarkvater <darkvater@openttd.org>2005-06-02 15:48:28 +0000
commit210540ce1a5c444564e62d127c48ebdc25d15671 (patch)
treecc12a39fbb66f0a46a0814b070800fef299b910e
parent4719bb0c6ee0235ba170569c15a0f94a6c2d7968 (diff)
downloadopenttd-210540ce1a5c444564e62d127c48ebdc25d15671.tar.xz
(svn r2395) - Fix: oops, forgot a break in a console switch.
-rw-r--r--console.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/console.c b/console.c
index ebe47a87c..763996328 100644
--- a/console.c
+++ b/console.c
@@ -499,7 +499,7 @@ static void IConsoleHookAdd(IConsoleHooks *hooks, IConsoleHookTypes type, IConso
case ICONSOLE_HOOK_POST_ACTION:
hooks->post = proc;
break;
- default: NOT_REACHED();
+ default: NOT_REACHED();
}
}
@@ -526,7 +526,7 @@ static bool IConsoleHookHandle(const IConsoleHooks *hooks, IConsoleHookTypes typ
case ICONSOLE_HOOK_POST_ACTION:
proc = hooks->post;
break;
- default: NOT_REACHED();
+ default: NOT_REACHED();
}
return (proc == NULL) ? true : proc();
@@ -925,6 +925,7 @@ static char *IConsoleVarGetStringValue(const IConsoleVar *var)
break;
case ICONSOLE_VAR_STRING:
value = (char*)var->addr;
+ break;
default: NOT_REACHED();
}