summaryrefslogtreecommitdiff
path: root/src/newgrf_spritegroup.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-01-09 18:14:29 +0000
committerbelugas <belugas@openttd.org>2008-01-09 18:14:29 +0000
commitf67b5798a00cdf9a76c10fa52e59b49c49b77bc8 (patch)
tree962aa96cce47d5dca6636978dd194ab4bbbf28fa /src/newgrf_spritegroup.h
parent785572ea32e11064375e9de0a789f46c73acac75 (diff)
downloadopenttd-f67b5798a00cdf9a76c10fa52e59b49c49b77bc8.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.h1
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;