summaryrefslogtreecommitdiff
path: root/src/rail.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2016-12-10 13:26:29 +0000
committerfrosch <frosch@openttd.org>2016-12-10 13:26:29 +0000
commit3ee06b036ea2e6b511a911bc77d5758413584402 (patch)
tree0b3b3b73d2d414ef75d32090aa177c8f5fc26696 /src/rail.h
parent10293c5fb1b90dcf13847fd07e44534550f1d656 (diff)
downloadopenttd-3ee06b036ea2e6b511a911bc77d5758413584402.tar.xz
(svn r27687) -Fix: RailtypeInfo::alternate_labels leaked when reloading NewGRF. (adf88)
Diffstat (limited to 'src/rail.h')
-rw-r--r--src/rail.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rail.h b/src/rail.h
index 320d24a9a..1bc403d7f 100644
--- a/src/rail.h
+++ b/src/rail.h
@@ -113,7 +113,8 @@ typedef SmallVector<RailTypeLabel, 4> RailTypeLabelList;
/**
* This struct contains all the info that is needed to draw and construct tracks.
*/
-struct RailtypeInfo {
+class RailtypeInfo {
+public:
/**
* Struct containing the main sprites. @note not all sprites are listed, but only
* the ones used directly in the code