Mercurial > hg > openttd
changeset 9908:090efbc71565 draft
(svn r14058) -Fix [FS#2224]: NewGRF callback 23 didn't use the NewGRF compatible text stack (minime)
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 12 Aug 2008 22:14:57 +0000 |
parents | 8ddaada26620 |
children | 4443036f7408 |
files | src/vehicle_gui.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -443,7 +443,10 @@ /* STR_02BD is used to start the string with {BLACK} */ SetDParam(0, GetGRFStringID(GetEngineGRFID(engine), 0xD000 + callback)); - return DrawStringMultiLine(x, y, STR_02BD, w); + PrepareTextRefStackUsage(0); + uint result = DrawStringMultiLine(x, y, STR_02BD, w); + StopTextRefStackUsage(); + return result; } /** Display list of cargo types of the engine, for the purchase information window */