1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 00:42:45 +01:00

Change: [NewGRF] Increase the textstack for all callbacks to 16 registers.

This commit is contained in:
frosch
2025-05-06 17:31:51 +02:00
committed by frosch
parent c6fa5022cb
commit a277cb2b4c
8 changed files with 10 additions and 10 deletions

View File

@@ -237,7 +237,7 @@ public:
/* Get the extra message for the GUI */
if (spec->callback_mask.Test(ObjectCallbackMask::FundMoreText)) {
std::array<int32_t, 6> regs100;
std::array<int32_t, 16> regs100;
uint16_t callback_res = GetObjectCallback(CBID_OBJECT_FUND_MORE_TEXT, 0, 0, spec, nullptr, INVALID_TILE, regs100, _object_gui.sel_view);
if (callback_res != CALLBACK_FAILED && callback_res != 0x400) {
std::string str;