In ReloadNewGRFData recompute prices before reiniting windows
Avoid crash if land info window is open during reload
This commit is contained in:
@@ -4184,8 +4184,8 @@ void ReloadNewGRFData()
|
|||||||
|
|
||||||
/* reload grf data */
|
/* reload grf data */
|
||||||
GfxLoadSprites();
|
GfxLoadSprites();
|
||||||
LoadStringWidthTable();
|
|
||||||
RecomputePrices();
|
RecomputePrices();
|
||||||
|
LoadStringWidthTable();
|
||||||
/* reload vehicles */
|
/* reload vehicles */
|
||||||
ResetVehicleHash();
|
ResetVehicleHash();
|
||||||
AfterLoadEngines();
|
AfterLoadEngines();
|
||||||
|
Reference in New Issue
Block a user