1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-26 13:44:16 +01:00

(svn r22251) [1.1] -Backport from trunk:

- Fix: [NewGRF] Object variable 0x48 was not available in callback 0x15C (r22231)
[1.1] -Update: the intro game (romazoon)
This commit is contained in:
rubidium
2011-03-14 18:10:24 +00:00
parent 30cf8d1971
commit fbea0fc6b1
2 changed files with 1 additions and 1 deletions

View File

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