summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/effectvehicle.cpp2
-rw-r--r--src/effectvehicle_func.h1
2 files changed, 3 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);
/**
diff --git a/src/effectvehicle_func.h b/src/effectvehicle_func.h
index 3642978fb..1a346775f 100644
--- a/src/effectvehicle_func.h
+++ b/src/effectvehicle_func.h
@@ -26,6 +26,7 @@ enum EffectVehicleType {
EV_EXPLOSION_SMALL = 7, ///< Various explosions.
EV_BULLDOZER = 8, ///< Bulldozer at roadworks.
EV_BUBBLE = 9, ///< Bubble of bubble generator (industry).
+ EV_END
};
EffectVehicle *CreateEffectVehicle(int x, int y, int z, EffectVehicleType type);