diff options
author | rubidium <rubidium@openttd.org> | 2009-07-01 14:51:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-01 14:51:05 +0000 |
commit | 927c4a0fe8b836fe88ca0636d2249016501dc9c3 (patch) | |
tree | 076df478323806636b50630f76dd7415abc0e504 /src/tile_cmd.h | |
parent | 8db99f57f87776dd86b7b3d12b9150363dd8d688 (diff) | |
download | openttd-927c4a0fe8b836fe88ca0636d2249016501dc9c3.tar.xz |
(svn r16709) -Fix [FS#2994]: the list of animated tiles could have duplicates (only for old savegames) and tiles that weren't animated
Diffstat (limited to 'src/tile_cmd.h')
-rw-r--r-- | src/tile_cmd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tile_cmd.h b/src/tile_cmd.h index 1b6c44128..59504ec1f 100644 --- a/src/tile_cmd.h +++ b/src/tile_cmd.h @@ -174,7 +174,7 @@ static inline void AddProducedCargo(TileIndex tile, CargoArray &produced) static inline void AnimateTile(TileIndex tile) { AnimateTileProc *proc = _tile_type_procs[GetTileType(tile)]->animate_tile_proc; - if (proc == NULL) return; + assert(proc != NULL); proc(tile); } |