summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-26 16:08:58 +0000
committerrubidium <rubidium@openttd.org>2013-11-26 16:08:58 +0000
commitd2ba772f6a9e6339b28faf62c3163d33de1498b3 (patch)
tree19e25a79a8dbe70c7eb21455984c401f72531068 /src/table
parent7abe85d72715f91ab309a3aaa18572a8964b189c (diff)
downloadopenttd-d2ba772f6a9e6339b28faf62c3163d33de1498b3.tar.xz
(svn r26130) -Codechange: add some guards against using invalid image indices
Diffstat (limited to 'src/table')
-rw-r--r--src/table/train_cmd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/table/train_cmd.h b/src/table/train_cmd.h
index ec92069fc..15ac6f2aa 100644
--- a/src/table/train_cmd.h
+++ b/src/table/train_cmd.h
@@ -64,3 +64,7 @@ static const byte _wagon_full_adder[] = {
0, 0, 24, 24, 24, 24, 0, 0,
32, 32
};
+
+assert_compile(lengthof(_engine_sprite_base) == lengthof(_engine_sprite_and));
+assert_compile(lengthof(_engine_sprite_base) == lengthof(_engine_sprite_add));
+assert_compile(lengthof(_engine_sprite_base) == lengthof(_wagon_full_adder));