From d2ba772f6a9e6339b28faf62c3163d33de1498b3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 26 Nov 2013 16:08:58 +0000 Subject: (svn r26130) -Codechange: add some guards against using invalid image indices --- src/table/train_cmd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/table') 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)); -- cgit v1.2.3-70-g09d2