summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-12 22:14:57 +0000
committerrubidium <rubidium@openttd.org>2008-08-12 22:14:57 +0000
commit0b9be84d468cef20d55842208b608afd80064b67 (patch)
tree9919a96b06841d34a8168ef43ca3d3605c80c8db /src
parentd1073ba57494bfce3ea9d1853b20eb4d6214caa7 (diff)
downloadopenttd-0b9be84d468cef20d55842208b608afd80064b67.tar.xz
(svn r14058) -Fix [FS#2224]: NewGRF callback 23 didn't use the NewGRF compatible text stack (minime)
Diffstat (limited to 'src')
-rw-r--r--src/vehicle_gui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 2f47f7261..cf2ea725b 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -443,7 +443,10 @@ uint ShowAdditionalText(int x, int y, uint w, EngineID engine)
/* 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 */