summaryrefslogtreecommitdiff
path: root/src/newgrf_industries.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-12 07:57:08 +0000
committerrubidium <rubidium@openttd.org>2007-07-12 07:57:08 +0000
commitac0440495cb1327a34b9fa3b541727ee096f39b7 (patch)
tree836686529b63498e4617e1bee86bd0bfc80f2f94 /src/newgrf_industries.cpp
parent358758e33be74557d6d2fc850258e5986cff1afe (diff)
downloadopenttd-ac0440495cb1327a34b9fa3b541727ee096f39b7.tar.xz
(svn r10518) -Fix: use the location of the industry and not INVALID_TILE for production callbacks; makes looking at the environment of an industry a lot more useful.
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r--src/newgrf_industries.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp
index 3b6722125..b9437531d 100644
--- a/src/newgrf_industries.cpp
+++ b/src/newgrf_industries.cpp
@@ -393,7 +393,7 @@ static int32 DerefIndProd(uint field, bool use_register)
void IndustryProductionCallback(Industry *ind, int reason)
{
ResolverObject object;
- NewIndustryResolver(&object, INVALID_TILE, ind);
+ NewIndustryResolver(&object, ind->xy, ind);
object.callback_param2 = reason;
for (uint loop = 0;; loop++) {