(svn r2066) - Fix: [ 1164248 ] game crash while AI builds bridge. Also protect bridge building against invalid bridges and some safeguards when drawing.

This commit is contained in:
Darkvater
2005-03-25 17:30:54 +00:00
parent 05dbeaeba4
commit 7da3b3b92d
3 changed files with 10 additions and 7 deletions

View File

@@ -724,7 +724,7 @@ static const uint32 * const _bridge_sprite_table_12[] = {
_bridge_sprite_table_3_6,
};
static const uint32 * const * const _bridge_sprite_table[] = {
static const uint32 * const * const _bridge_sprite_table[MAX_BRIDGES] = {
_bridge_sprite_table_0,
_bridge_sprite_table_1,
_bridge_sprite_table_2,