diff options
author | rubidium <rubidium@openttd.org> | 2009-02-09 01:06:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-09 01:06:23 +0000 |
commit | 9907742a0f73bdbbf578cd2b6c424b80d254fed1 (patch) | |
tree | 3fb8cd8b4041aa509972f5b01531eb874e6c113d /src/window.cpp | |
parent | 7b8c13fa5c7cdaac1342fd7c8244721739e2354c (diff) | |
download | openttd-9907742a0f73bdbbf578cd2b6c424b80d254fed1.tar.xz |
(svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness.
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp index 5161bea4f..c8d15245a 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -172,6 +172,7 @@ static void DispatchLeftClickEvent(Window *w, int x, int y, bool double_click) if (wi->type & WWB_MASK) { /* special widget handling for buttons*/ switch (wi->type) { + default: NOT_REACHED(); case WWT_PANEL | WWB_PUSHBUTTON: /* WWT_PUSHBTN */ case WWT_IMGBTN | WWB_PUSHBUTTON: /* WWT_PUSHIMGBTN */ case WWT_TEXTBTN | WWB_PUSHBUTTON: /* WWT_PUSHTXTBTN */ |