summaryrefslogtreecommitdiff
path: root/src/effectvehicle.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-28 09:43:53 +0000
committerfrosch <frosch@openttd.org>2011-05-28 09:43:53 +0000
commit7c21083227dd4309d4a7886e4043fe3f7d44204f (patch)
treefbc99d775a7ff0fed80db6e5c5cdf0a7e73b2ed0 /src/effectvehicle.cpp
parent1b34d226202e3f75b8d7744f25a76935891e8a1c (diff)
downloadopenttd-7c21083227dd4309d4a7886e4043fe3f7d44204f.tar.xz
(svn r22504) -Codechange: Add EV_END and use it to check the lengths of _effect_init_procs and _effect_tick_procs.
Diffstat (limited to 'src/effectvehicle.cpp')
-rw-r--r--src/effectvehicle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/effectvehicle.cpp b/src/effectvehicle.cpp
index e50480f3b..fbada6702 100644
--- a/src/effectvehicle.cpp
+++ b/src/effectvehicle.cpp
@@ -544,6 +544,7 @@ static EffectInitProc * const _effect_init_procs[] = {
BulldozerInit, // EV_BULLDOZER
BubbleInit, // EV_BUBBLE
};
+assert_compile(lengthof(_effect_init_procs) == EV_END);
/** Functions for controling effect vehicles at each tick. */
static EffectTickProc * const _effect_tick_procs[] = {
@@ -558,6 +559,7 @@ static EffectTickProc * const _effect_tick_procs[] = {
BulldozerTick, // EV_BULLDOZER
BubbleTick, // EV_BUBBLE
};
+assert_compile(lengthof(_effect_tick_procs) == EV_END);
/**