summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-03-10 19:32:24 +0000
committerfrosch <frosch@openttd.org>2011-03-10 19:32:24 +0000
commit4269170c9b9e9432582aa7717db9878a7e23fcd6 (patch)
treeb0d92b0df90d282654a8c4e8a38275432c04a80b /src
parent7e74b52d6ef1f6f943fa10ece18da699c5c3f8ef (diff)
downloadopenttd-4269170c9b9e9432582aa7717db9878a7e23fcd6.tar.xz
(svn r22231) -Feature(ette): [NewGRF] Make var 0x48 available in CB 0x15C.
Diffstat (limited to 'src')
-rw-r--r--src/object_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object_gui.cpp b/src/object_gui.cpp
index ba2317192..ec72dc482 100644
--- a/src/object_gui.cpp
+++ b/src/object_gui.cpp
@@ -232,7 +232,7 @@ public:
/* Get the extra message for the GUI */
if (HasBit(spec->callback_mask, CBM_OBJ_FUND_MORE_TEXT)) {
- uint16 callback_res = GetObjectCallback(CBID_OBJECT_FUND_MORE_TEXT, 0, 0, spec, NULL, INVALID_TILE);
+ uint16 callback_res = GetObjectCallback(CBID_OBJECT_FUND_MORE_TEXT, 0, 0, spec, NULL, INVALID_TILE, _selected_object_view);
if (callback_res != CALLBACK_FAILED) {
StringID message = GetGRFStringID(spec->grf_prop.grffile->grfid, 0xD000 + callback_res);
if (message != STR_NULL && message != STR_UNDEFINED) {