diff options
author | belugas <belugas@openttd.org> | 2008-01-09 18:14:29 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-01-09 18:14:29 +0000 |
commit | 4bbe046499f87f47fb45cd9977fc518a3fd0b9e4 (patch) | |
tree | 962aa96cce47d5dca6636978dd194ab4bbbf28fa /src/newgrf_spritegroup.h | |
parent | 8ee8d1b964f523df5e8264828bf17fb4f8c17dee (diff) | |
download | openttd-4bbe046499f87f47fb45cd9977fc518a3fd0b9e4.tar.xz |
(svn r11797) -Fix: Add protection against not already created industry while doing industry callback.
Some variables used were linked to invalid industry.
Diffstat (limited to 'src/newgrf_spritegroup.h')
-rw-r--r-- | src/newgrf_spritegroup.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_spritegroup.h b/src/newgrf_spritegroup.h index 2d703d269..13199e0d1 100644 --- a/src/newgrf_spritegroup.h +++ b/src/newgrf_spritegroup.h @@ -231,6 +231,7 @@ struct ResolverObject { TileIndex tile; Industry *ind; IndustryGfx gfx; + IndustryType type; } industry; struct { const struct CargoSpec *cs; |