summaryrefslogtreecommitdiff
path: root/src
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
commit9dee5402332496582e02beb9aed2733a0974491c (patch)
tree836686529b63498e4617e1bee86bd0bfc80f2f94 /src
parentbbe5d876cf184713359e4d5e5fd2470eedb79dca (diff)
downloadopenttd-9dee5402332496582e02beb9aed2733a0974491c.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')
-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++) {