In ReloadNewGRFData recompute prices before reiniting windows

Avoid crash if land info window is open during reload
This commit is contained in:
Jonathan G Rennison
2022-10-01 14:31:26 +01:00
parent 60cc8ddf80
commit 9e24414033

View File

@@ -4184,8 +4184,8 @@ void ReloadNewGRFData()
/* reload grf data */
GfxLoadSprites();
LoadStringWidthTable();
RecomputePrices();
LoadStringWidthTable();
/* reload vehicles */
ResetVehicleHash();
AfterLoadEngines();