(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

This commit is contained in:
rubidium
2009-09-17 21:14:16 +00:00
parent 1858fef92f
commit 55c0109ee0
3 changed files with 40 additions and 0 deletions

View File

@@ -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
}