1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-17 01:12:39 +01:00

Codechange: explicitly initialise OrderBackup and OrderList member variables

This commit is contained in:
Rubidium
2025-02-18 18:27:49 +01:00
committed by rubidium42
parent 0a285e1a86
commit 5ccbaa6990
3 changed files with 14 additions and 20 deletions

View File

@@ -43,12 +43,8 @@ OrderBackup::~OrderBackup()
* @param v The vehicle to make a backup of.
* @param user The user that is requesting the backup.
*/
OrderBackup::OrderBackup(const Vehicle *v, uint32_t user)
OrderBackup::OrderBackup(const Vehicle *v, uint32_t user) : user(user), tile(v->tile), group(v->group_id)
{
this->user = user;
this->tile = v->tile;
this->group = v->group_id;
this->CopyConsistPropertiesFrom(v);
/* If we have shared orders, store the vehicle we share the order with. */