fixed powerplant (maybe other upgrades as well) image display not properly in some special theaters, e.g. desert .

This commit is contained in:
Zero Fanker 2024-05-29 00:34:10 -04:00
parent e3fbcdc28a
commit 54794f7a11

View file

@ -1512,7 +1512,7 @@ void CLoading::LoadBuilding(const CString& ID)
auto const& powerUpBldId = rules.GetString(ID, "PowersUpBuilding");
// Early load
if (!powerUpBldId.IsEmpty()) {
CString SrcBldName = GetBuildingFileID(powerUpBldId) + "0";
CString SrcBldName = powerUpBldId + "0";
if (!IsImageLoaded(SrcBldName)) {
LoadBuilding(powerUpBldId);
}