(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.

This commit is contained in:
rubidium 2007-07-12 07:57:08 +00:00
parent bbe5d876cf
commit 9dee540233
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {