diff options
author | rubidium <rubidium@openttd.org> | 2009-09-17 21:14:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-17 21:14:16 +0000 |
commit | 55c0109ee0053d224236ec536629d03d7b6ec13c (patch) | |
tree | 54cd778bcc859dfbf1a0b94a4f0f96b595f298bf /src/newgrf_config.cpp | |
parent | 1858fef92f53651915cffa12c820fc68272379ce (diff) | |
download | openttd-55c0109ee0053d224236ec536629d03d7b6ec13c.tar.xz |
(svn r17562) -Fix [FS#2972]: the NewGRF settings of (remote) network games did not get properly updated when the NewGRFs were rescanned causing reading of freed data
Diffstat (limited to 'src/newgrf_config.cpp')
-rw-r--r-- | src/newgrf_config.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index 07c2e432b..aff7ac406 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -17,6 +17,7 @@ #include "string_func.h" #include "gamelog.h" #include "network/network_type.h" +#include "network/network_func.h" #include "gfx_func.h" #include "fileio_func.h" @@ -391,6 +392,10 @@ void ScanNewGRFFiles() _all_grfs = to_sort[0]; free(to_sort); + +#ifdef ENABLE_NETWORK + NetworkAfterNewGRFScan(); +#endif } |