summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-01-30 14:50:55 +0000
committerpeter1138 <peter1138@openttd.org>2006-01-30 14:50:55 +0000
commit4bc7df663caf3d06a6451e761905dd88da7e1ae4 (patch)
treef14686406c1806a31e0518242f4d9e650cca5eb5
parent8316942f9184d28295fe9a5d2c7cf853ea18f585 (diff)
downloadopenttd-4bc7df663caf3d06a6451e761905dd88da7e1ae4.tar.xz
(svn r3486) - NewGRF fix: Always reinitialize the ttdpatch flags as patch settings may have changed.
-rw-r--r--newgrf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/newgrf.c b/newgrf.c
index 0adf1af72..ae6de3d26 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -2710,13 +2710,9 @@ static void LoadNewGRFFile(const char* filename, uint file_index, uint stage)
void LoadNewGRF(uint load_index, uint file_index)
{
- static bool initialized = false; // XXX yikes
uint stage;
- if (!initialized) {
- InitializeGRFSpecial();
- initialized = true;
- }
+ InitializeGRFSpecial();
ResetNewGRFData();