Codechange: use explicit TileIndex constructor for tile 0

This commit is contained in:
Rubidium
2024-12-31 22:44:12 +01:00
committed by rubidium42
parent 562ec74812
commit fd5f6caed4
20 changed files with 48 additions and 48 deletions

View File

@@ -557,7 +557,7 @@ protected:
this->SetTimeout();
this->SetWidgetDirty(WID_SB_PAGE_PANEL);
Command<CMD_STORY_PAGE_BUTTON>::Post(0, pe.index, 0);
Command<CMD_STORY_PAGE_BUTTON>::Post(TileIndex{}, pe.index, 0);
break;
case SPET_BUTTON_TILE:
@@ -925,7 +925,7 @@ public:
VehicleType wanted_vehtype = data.GetVehicleType();
if (wanted_vehtype != VEH_INVALID && wanted_vehtype != v->type) return false;
Command<CMD_STORY_PAGE_BUTTON>::Post(0, pe->index, v->index);
Command<CMD_STORY_PAGE_BUTTON>::Post(TileIndex{}, pe->index, v->index);
ResetObjectToPlace();
return true;
}