summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-31 13:25:20 +0000
committerrubidium <rubidium@openttd.org>2009-07-31 13:25:20 +0000
commit097e79a86de967c416d71d934a325d883d917fd5 (patch)
tree5a6a23be557b11e2963262c88946b7791343920b /src/aircraft_cmd.cpp
parentc2fdb85c0dce9cfa61045ccee16052f0e31d7078 (diff)
downloadopenttd-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/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 8d0a3dda0..11cea23d7 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -1799,8 +1799,7 @@ static bool AirportMove(Aircraft *v, const AirportFTAClass *apc)
} while (current != NULL);
DEBUG(misc, 0, "[Ap] cannot move further on Airport! (pos %d state %d) for vehicle %d", v->pos, v->state, v->index);
- assert(0);
- return false;
+ NOT_REACHED();
}
/* returns true if the road ahead is busy, eg. you must wait before proceeding */