diff options
author | rubidium <rubidium@openttd.org> | 2009-07-31 13:25:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-31 13:25:20 +0000 |
commit | 097e79a86de967c416d71d934a325d883d917fd5 (patch) | |
tree | 5a6a23be557b11e2963262c88946b7791343920b /src/strings.cpp | |
parent | c2fdb85c0dce9cfa61045ccee16052f0e31d7078 (diff) | |
download | openttd-097e79a86de967c416d71d934a325d883d917fd5.tar.xz |
(svn r17001) -Codechange: replace some more assert(0)s to NOT_REACHED() and document why they (assert(0)) have to stay for the remaining cases.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 4cbe06df3..add90ae26 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1248,8 +1248,7 @@ static char *GetSpecialNameString(char *buff, int ind, int64 *argv, const char * return strecpy(buff, GetScreenshotFormatDesc(i), last); } - assert(0); - return NULL; + NOT_REACHED(); } #ifdef ENABLE_NETWORK |