mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-16 09:05:08 +01:00
(svn r24482) -Fix [FS#5232] (r24180): Do not call RebuildSubsidisedSourceAndDestinationCache() before subsidy savegame conversion is finished.
This commit is contained in:
parent
d17ec934f5
commit
b11b0bb0e2
@ -60,7 +60,7 @@
|
|||||||
#include "game/game.hpp"
|
#include "game/game.hpp"
|
||||||
#include "game/game_config.hpp"
|
#include "game/game_config.hpp"
|
||||||
#include "town.h"
|
#include "town.h"
|
||||||
|
#include "subsidy_func.h"
|
||||||
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
@ -1158,6 +1158,7 @@ static void CheckCaches()
|
|||||||
|
|
||||||
extern void RebuildTownCaches();
|
extern void RebuildTownCaches();
|
||||||
RebuildTownCaches();
|
RebuildTownCaches();
|
||||||
|
RebuildSubsidisedSourceAndDestinationCache();
|
||||||
|
|
||||||
uint i = 0;
|
uint i = 0;
|
||||||
FOR_ALL_TOWNS(t) {
|
FOR_ALL_TOWNS(t) {
|
||||||
|
@ -50,8 +50,6 @@ void RebuildTownCaches()
|
|||||||
UpdateTownCargoes(town);
|
UpdateTownCargoes(town);
|
||||||
}
|
}
|
||||||
UpdateTownCargoBitmap();
|
UpdateTownCargoBitmap();
|
||||||
|
|
||||||
RebuildSubsidisedSourceAndDestinationCache();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user