diff options
author | frosch <frosch@openttd.org> | 2014-01-12 18:00:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-01-12 18:00:19 +0000 |
commit | 73c6565cf269608092d119e353df522e97c5db7a (patch) | |
tree | 3c238ae76ed718acac990686636a6403f1f255b8 /src/newgrf_industries.cpp | |
parent | 477c15383d00caaf62bc554d6ff8890adebce071 (diff) | |
download | openttd-73c6565cf269608092d119e353df522e97c5db7a.tar.xz |
(svn r26240) -Codechange: Pass the GRFFile to GetErrorMessageFromLocationCallbackResult instead of the GRFID.
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r-- | src/newgrf_industries.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index ffc677d02..dfc615b29 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -531,7 +531,7 @@ CommandCost CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uin uint16 result = group->GetCallbackResult(); if (result == CALLBACK_FAILED) return CommandCost(); - return GetErrorMessageFromLocationCallbackResult(result, indspec->grf_prop.grffile->grfid, STR_ERROR_SITE_UNSUITABLE); + return GetErrorMessageFromLocationCallbackResult(result, indspec->grf_prop.grffile, STR_ERROR_SITE_UNSUITABLE); } /** |